Class: GfreshPoint::ResponseObjects::ResponseSuccess
- Inherits:
-
Object
- Object
- GfreshPoint::ResponseObjects::ResponseSuccess
- Defined in:
- lib/gfresh_point/response_objects/response_success.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ ResponseSuccess
constructor
A new instance of ResponseSuccess.
- #success? ⇒ Boolean
Constructor Details
#initialize(value = nil) ⇒ ResponseSuccess
Returns a new instance of ResponseSuccess.
6 7 8 |
# File 'lib/gfresh_point/response_objects/response_success.rb', line 6 def initialize(value = nil) @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/gfresh_point/response_objects/response_success.rb', line 4 def value @value end |
Instance Method Details
#success? ⇒ Boolean
10 11 12 |
# File 'lib/gfresh_point/response_objects/response_success.rb', line 10 def success? true end |