Class: SigfoxApi::Response
- Inherits:
-
Object
- Object
- SigfoxApi::Response
- Defined in:
- lib/sigfox_api/response.rb
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(faraday_response) ⇒ Response
constructor
A new instance of Response.
- #status ⇒ Object
Constructor Details
#initialize(faraday_response) ⇒ Response
Returns a new instance of Response.
5 6 7 8 |
# File 'lib/sigfox_api/response.rb', line 5 def initialize(faraday_response) @row_status = faraday_response.status @row_body = faraday_response.body end |
Instance Method Details
#body ⇒ Object
14 15 16 |
# File 'lib/sigfox_api/response.rb', line 14 def body @row_body end |
#status ⇒ Object
10 11 12 |
# File 'lib/sigfox_api/response.rb', line 10 def status @row_status end |