Class: LinkedIn::Response
- Inherits:
-
Object
- Object
- LinkedIn::Response
- Defined in:
- lib/linkedin/response.rb
Instance Attribute Summary collapse
-
#_body ⇒ Object
readonly
Returns the value of attribute _body.
-
#_response ⇒ Object
readonly
Returns the value of attribute _response.
Instance Method Summary collapse
- #_status ⇒ Object
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
5 6 7 8 |
# File 'lib/linkedin/response.rb', line 5 def initialize(response) @_response = response @_body = response.body end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
14 15 16 |
# File 'lib/linkedin/response.rb', line 14 def method_missing(method, *args, &block) _body.send method, *args, &block end |
Instance Attribute Details
#_body ⇒ Object (readonly)
Returns the value of attribute _body.
3 4 5 |
# File 'lib/linkedin/response.rb', line 3 def _body @_body end |
#_response ⇒ Object (readonly)
Returns the value of attribute _response.
3 4 5 |
# File 'lib/linkedin/response.rb', line 3 def _response @_response end |
Instance Method Details
#_status ⇒ Object
10 11 12 |
# File 'lib/linkedin/response.rb', line 10 def _status _response.status end |