Class: Rlocu::Menu::OptionGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/rlocu/menu.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(option_group_hash) ⇒ OptionGroup

Returns a new instance of OptionGroup.



119
120
121
122
123
# File 'lib/rlocu/menu.rb', line 119

def initialize(option_group_hash)
  @type = option_group_hash['type']
  @text = option_group_hash['text']
  self.options = option_group_hash['options']
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



118
119
120
# File 'lib/rlocu/menu.rb', line 118

def options
  @options
end

#textObject (readonly)

Returns the value of attribute text.



118
119
120
# File 'lib/rlocu/menu.rb', line 118

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



118
119
120
# File 'lib/rlocu/menu.rb', line 118

def type
  @type
end