Class: Pago::HTTP::Response
- Inherits:
-
Struct
- Object
- Struct
- Pago::HTTP::Response
- Defined in:
- lib/pago/http.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
14 15 16 |
# File 'lib/pago/http.rb', line 14 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
14 15 16 |
# File 'lib/pago/http.rb', line 14 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status
14 15 16 |
# File 'lib/pago/http.rb', line 14 def status @status end |
Instance Method Details
#success? ⇒ Boolean
15 |
# File 'lib/pago/http.rb', line 15 def success? = status >= 200 && status < 300 |