Class: HasHelpers::ServiceTrust::Client::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/has_helpers/service_trust/client/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



6
7
8
# File 'lib/has_helpers/service_trust/client/response.rb', line 6

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



6
7
8
# File 'lib/has_helpers/service_trust/client/response.rb', line 6

def headers
  @headers
end

#parsedObject

Returns the value of attribute parsed

Returns:

  • (Object)

    the current value of parsed



6
7
8
# File 'lib/has_helpers/service_trust/client/response.rb', line 6

def parsed
  @parsed
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'lib/has_helpers/service_trust/client/response.rb', line 6

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/has_helpers/service_trust/client/response.rb', line 7

def success?
  (200..299).cover?(status)
end