Class: Rbdux::Action::BaseAction
- Inherits:
-
Object
- Object
- Rbdux::Action::BaseAction
- Defined in:
- lib/rbdux/action.rb
Class Attribute Summary collapse
-
.dispatch_func ⇒ Object
readonly
Returns the value of attribute dispatch_func.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.dispatch_func ⇒ Object (readonly)
Returns the value of attribute dispatch_func.
16 17 18 |
# File 'lib/rbdux/action.rb', line 16 def dispatch_func @dispatch_func end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
31 32 33 |
# File 'lib/rbdux/action.rb', line 31 def error @error end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
31 32 33 |
# File 'lib/rbdux/action.rb', line 31 def payload @payload end |
Class Method Details
.empty ⇒ Object
18 19 20 |
# File 'lib/rbdux/action.rb', line 18 def empty new(nil, nil) end |
.with_error(error) ⇒ Object
26 27 28 |
# File 'lib/rbdux/action.rb', line 26 def with_error(error) new(nil, error) end |
.with_payload(payload) ⇒ Object
22 23 24 |
# File 'lib/rbdux/action.rb', line 22 def with_payload(payload) new(payload, nil) end |
Instance Method Details
#error? ⇒ Boolean
33 34 35 |
# File 'lib/rbdux/action.rb', line 33 def error? !error.nil? end |