Class: HumanizeEnum::Helpers::SelectOption

Inherits:
Struct
  • Object
show all
Defined in:
lib/humanize_enum/helpers.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



4
5
6
# File 'lib/humanize_enum/helpers.rb', line 4

def checked
  @checked
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/humanize_enum/helpers.rb', line 4

def id
  @id
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



4
5
6
# File 'lib/humanize_enum/helpers.rb', line 4

def text
  @text
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



4
5
6
# File 'lib/humanize_enum/helpers.rb', line 4

def value
  @value
end