Class: Yify::Response
- Inherits:
-
Object
- Object
- Yify::Response
- Includes:
- Support::Utils
- Defined in:
- lib/yify/response.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(res, model) ⇒ Response
constructor
A new instance of Response.
Methods included from Support::Utils
#map_class, #post_params, #symbolize_keys
Constructor Details
#initialize(res, model) ⇒ Response
Returns a new instance of Response.
7 8 9 10 11 12 13 |
# File 'lib/yify/response.rb', line 7 def initialize(res, model) @model = model @response = res @result = {} normalized_response end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
5 6 7 |
# File 'lib/yify/response.rb', line 5 def model @model end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/yify/response.rb', line 5 def response @response end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
5 6 7 |
# File 'lib/yify/response.rb', line 5 def result @result end |