Class: Cadooz::Immutable::Response
- Inherits:
-
Object
- Object
- Cadooz::Immutable::Response
- Defined in:
- lib/cadooz/models/immutable/response.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(object, raw_response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(object, raw_response) ⇒ Response
Returns a new instance of Response.
4 5 6 7 8 9 |
# File 'lib/cadooz/models/immutable/response.rb', line 4 def initialize(object, raw_response) @object = object @raw = raw_response self.freeze end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
2 3 4 |
# File 'lib/cadooz/models/immutable/response.rb', line 2 def object @object end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
2 3 4 |
# File 'lib/cadooz/models/immutable/response.rb', line 2 def raw @raw end |