Class: Sinch::Response::Base
- Inherits:
-
Object
- Object
- Sinch::Response::Base
- Defined in:
- lib/sinch/response/base.rb
Overview
Base Sinch API Response
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
7 8 9 |
# File 'lib/sinch/response/base.rb', line 7 def response @response end |
Instance Method Details
#json ⇒ Object
11 12 13 14 |
# File 'lib/sinch/response/base.rb', line 11 def json return {} unless success? response.parsed_response.to_json end |