lib/oktakit/error.rb
# Returns the appropriate Oktakit::Error subclass based
# on status and response message
#
# @param [Hash] response HTTP response
# @return [Oktakit::Error]
Returns the appropriate Oktakit::Error subclass based
on status and response message
Returns the appropriate Oktakit :: Error subclass based on status and response message
def response_message
      case data
      when Hash
        data[:errorSummary]
      when String
        data
      end
    end
def response_message case data when Hash data [ :errorSummary ] when String data end end
Returns the appropriate Oktakit::Error subclass based
on status and response message
Returns the appropriate Oktakit :: Error subclass based on status and response message
None
Oktakit::Error
<not_specific>
response HTTP response
response HTTP response