Class: Reviewable::Actions::Bundle

Inherits:
Item
  • Object
show all
Defined in:
lib/reviewable/actions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionsObject

Returns the value of attribute actions.



25
26
27
# File 'lib/reviewable/actions.rb', line 25

def actions
  @actions
end

#iconObject

Returns the value of attribute icon.



25
26
27
# File 'lib/reviewable/actions.rb', line 25

def icon
  @icon
end

#labelObject

Returns the value of attribute label.



25
26
27
# File 'lib/reviewable/actions.rb', line 25

def label
  @label
end