Class: Rdux::Result
- Inherits:
-
Struct
- Object
- Struct
- Rdux::Result
- Defined in:
- lib/rdux/result.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#after_save ⇒ Object
Returns the value of attribute after_save.
-
#down_payload ⇒ Object
Returns the value of attribute down_payload.
-
#nested ⇒ Object
Returns the value of attribute nested.
-
#ok ⇒ Object
Returns the value of attribute ok.
-
#save ⇒ Object
Returns the value of attribute save.
-
#up_result ⇒ Object
Returns the value of attribute up_result.
-
#val ⇒ Object
Returns the value of attribute val.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
4 5 6 |
# File 'lib/rdux/result.rb', line 4 def action @action end |
#after_save ⇒ Object
Returns the value of attribute after_save
4 5 6 |
# File 'lib/rdux/result.rb', line 4 def after_save @after_save end |
#down_payload ⇒ Object
Returns the value of attribute down_payload
4 5 6 |
# File 'lib/rdux/result.rb', line 4 def down_payload @down_payload end |
#nested ⇒ Object
Returns the value of attribute nested
4 5 6 |
# File 'lib/rdux/result.rb', line 4 def nested @nested end |
#ok ⇒ Object
Returns the value of attribute ok
4 5 6 |
# File 'lib/rdux/result.rb', line 4 def ok @ok end |
#save ⇒ Object
Returns the value of attribute save
4 5 6 |
# File 'lib/rdux/result.rb', line 4 def save @save end |
#up_result ⇒ Object
Returns the value of attribute up_result
4 5 6 |
# File 'lib/rdux/result.rb', line 4 def up_result @up_result end |
#val ⇒ Object
Returns the value of attribute val
4 5 6 |
# File 'lib/rdux/result.rb', line 4 def val @val end |
Instance Method Details
#save_failed? ⇒ Boolean
9 10 11 |
# File 'lib/rdux/result.rb', line 9 def save_failed? ok == false && save end |