Class: HasHelpers::ServiceTrust::Client::Response
- Inherits:
-
Struct
- Object
- Struct
- HasHelpers::ServiceTrust::Client::Response
- Defined in:
- lib/has_helpers/service_trust/client/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#parsed ⇒ Object
Returns the value of attribute parsed.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
6 7 8 |
# File 'lib/has_helpers/service_trust/client/response.rb', line 6 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
6 7 8 |
# File 'lib/has_helpers/service_trust/client/response.rb', line 6 def headers @headers end |
#parsed ⇒ Object
Returns the value of attribute parsed
6 7 8 |
# File 'lib/has_helpers/service_trust/client/response.rb', line 6 def parsed @parsed end |
#status ⇒ Object
Returns the value of attribute status
6 7 8 |
# File 'lib/has_helpers/service_trust/client/response.rb', line 6 def status @status end |
Instance Method Details
#success? ⇒ Boolean
7 8 9 |
# File 'lib/has_helpers/service_trust/client/response.rb', line 7 def success? (200..299).cover?(status) end |