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