Class: Tessera::Model::Base
- Inherits:
-
Object
- Object
- Tessera::Model::Base
- Defined in:
- lib/tessera/model/base.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(response) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/tessera/model/base.rb', line 6 def initialize(response) @response = response @code = @response.code parse_errors if parsed_body parse_attributes if parsed_body end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/tessera/model/base.rb', line 4 def code @code end |
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/tessera/model/base.rb', line 4 def errors @errors end |
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/tessera/model/base.rb', line 4 def response @response end |