Class: Corrails::Response
- Inherits:
-
Object
- Object
- Corrails::Response
- Defined in:
- lib/corrails/model/response.rb
Instance Attribute Summary collapse
-
#error_msg ⇒ Object
Returns the value of attribute error_msg.
-
#item ⇒ Object
Returns the value of attribute item.
-
#result ⇒ Object
Returns the value of attribute result.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
- #ok? ⇒ Boolean
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
5 6 |
# File 'lib/corrails/model/response.rb', line 5 def initialize end |
Instance Attribute Details
#error_msg ⇒ Object
Returns the value of attribute error_msg.
3 4 5 |
# File 'lib/corrails/model/response.rb', line 3 def error_msg @error_msg end |
#item ⇒ Object
Returns the value of attribute item.
3 4 5 |
# File 'lib/corrails/model/response.rb', line 3 def item @item end |
#result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/corrails/model/response.rb', line 3 def result @result end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/corrails/model/response.rb', line 3 def status @status end |
Instance Method Details
#ok? ⇒ Boolean
8 9 10 |
# File 'lib/corrails/model/response.rb', line 8 def ok? result == true end |