Class: Dallal::Result::Success
- Inherits:
-
Object
- Object
- Dallal::Result::Success
- Defined in:
- lib/dallal/result.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(data = nil) ⇒ Success
constructor
A new instance of Success.
Constructor Details
#initialize(data = nil) ⇒ Success
Returns a new instance of Success.
5 6 7 8 |
# File 'lib/dallal/result.rb', line 5 def initialize(data = nil) @success = true @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/dallal/result.rb', line 4 def data @data end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
4 5 6 |
# File 'lib/dallal/result.rb', line 4 def success @success end |