Class: Reviewable::Actions::Bundle
- Inherits:
-
Item
- Object
- Item
- Reviewable::Actions::Bundle
- Defined in:
- lib/reviewable/actions.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(id, icon: nil, label: nil) ⇒ Bundle
constructor
A new instance of Bundle.
Constructor Details
#initialize(id, icon: nil, label: nil) ⇒ Bundle
Returns a new instance of Bundle.
27 28 29 30 31 32 |
# File 'lib/reviewable/actions.rb', line 27 def initialize(id, icon: nil, label: nil) super(id) @icon = icon @label = label @actions = [] end |
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions.
25 26 27 |
# File 'lib/reviewable/actions.rb', line 25 def actions @actions end |
#icon ⇒ Object
Returns the value of attribute icon.
25 26 27 |
# File 'lib/reviewable/actions.rb', line 25 def icon @icon end |
#label ⇒ Object
Returns the value of attribute label.
25 26 27 |
# File 'lib/reviewable/actions.rb', line 25 def label @label end |
Instance Method Details
#empty? ⇒ Boolean
34 35 36 |
# File 'lib/reviewable/actions.rb', line 34 def empty? @actions.empty? end |