Class: HumanizeEnum::SelectOption

Inherits:
Struct
  • Object
show all
Defined in:
lib/humanize_enum.rb

Overview

Struct to be used in html selects and similar places

Instance Attribute Summary collapse

Instance Attribute Details

#checkedObject

Returns the value of attribute checked

Returns:

  • (Object)

    the current value of checked



34
35
36
# File 'lib/humanize_enum.rb', line 34

def checked
  @checked
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



34
35
36
# File 'lib/humanize_enum.rb', line 34

def id
  @id
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



34
35
36
# File 'lib/humanize_enum.rb', line 34

def text
  @text
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



34
35
36
# File 'lib/humanize_enum.rb', line 34

def value
  @value
end