Class: Svarog::Result
- Inherits:
-
Struct
- Object
- Struct
- Svarog::Result
- Defined in:
- lib/svarog.rb
Instance Attribute Summary collapse
-
#success ⇒ Object
Returns the value of attribute success.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#success ⇒ Object
Returns the value of attribute success
9 10 11 |
# File 'lib/svarog.rb', line 9 def success @success end |
#value ⇒ Object
Returns the value of attribute value
9 10 11 |
# File 'lib/svarog.rb', line 9 def value @value end |
Instance Method Details
#failure? ⇒ Boolean
14 15 16 |
# File 'lib/svarog.rb', line 14 def failure? !success end |
#success? ⇒ Boolean
10 11 12 |
# File 'lib/svarog.rb', line 10 def success? success end |