Class: Reviewable::Actions::Action
- Inherits:
-
Item
- Object
- Item
- Reviewable::Actions::Action
- Defined in:
- lib/reviewable/actions.rb
Instance Attribute Summary collapse
-
#button_class ⇒ Object
Returns the value of attribute button_class.
-
#client_action ⇒ Object
Returns the value of attribute client_action.
-
#confirm_message ⇒ Object
Returns the value of attribute confirm_message.
-
#custom_modal ⇒ Object
Returns the value of attribute custom_modal.
-
#description ⇒ Object
Returns the value of attribute description.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#label ⇒ Object
Returns the value of attribute label.
-
#require_reject_reason ⇒ Object
Returns the value of attribute require_reject_reason.
Instance Method Summary collapse
-
#initialize(id, icon = nil, button_class = nil, label = nil) ⇒ Action
constructor
A new instance of Action.
- #server_action ⇒ Object
Constructor Details
#initialize(id, icon = nil, button_class = nil, label = nil) ⇒ Action
Returns a new instance of Action.
49 50 51 52 |
# File 'lib/reviewable/actions.rb', line 49 def initialize(id, icon = nil, = nil, label = nil) super(id) @icon, @button_class, @label = icon, , label end |
Instance Attribute Details
#button_class ⇒ Object
Returns the value of attribute button_class.
40 41 42 |
# File 'lib/reviewable/actions.rb', line 40 def @button_class end |
#client_action ⇒ Object
Returns the value of attribute client_action.
40 41 42 |
# File 'lib/reviewable/actions.rb', line 40 def client_action @client_action end |
#confirm_message ⇒ Object
Returns the value of attribute confirm_message.
40 41 42 |
# File 'lib/reviewable/actions.rb', line 40 def @confirm_message end |
#custom_modal ⇒ Object
Returns the value of attribute custom_modal.
40 41 42 |
# File 'lib/reviewable/actions.rb', line 40 def custom_modal @custom_modal end |
#description ⇒ Object
Returns the value of attribute description.
40 41 42 |
# File 'lib/reviewable/actions.rb', line 40 def description @description end |
#icon ⇒ Object
Returns the value of attribute icon.
40 41 42 |
# File 'lib/reviewable/actions.rb', line 40 def icon @icon end |
#label ⇒ Object
Returns the value of attribute label.
40 41 42 |
# File 'lib/reviewable/actions.rb', line 40 def label @label end |
#require_reject_reason ⇒ Object
Returns the value of attribute require_reject_reason.
40 41 42 |
# File 'lib/reviewable/actions.rb', line 40 def require_reject_reason @require_reject_reason end |
Instance Method Details
#server_action ⇒ Object
54 55 56 |
# File 'lib/reviewable/actions.rb', line 54 def server_action id.split("-").last end |