Class: HstoreRadioButtons::ButtonOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/hstore_radio_buttons/button_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ ButtonOptions

Returns a new instance of ButtonOptions.



4
5
6
7
# File 'lib/hstore_radio_buttons/button_options.rb', line 4

def initialize(name, options)
  self.name = name
  self.options = *options
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/hstore_radio_buttons/button_options.rb', line 3

def name
  @name
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/hstore_radio_buttons/button_options.rb', line 3

def options
  @options
end