Class: HumanizeEnum::Helpers::SelectOption
- Inherits:
-
Struct
- Object
- Struct
- HumanizeEnum::Helpers::SelectOption
- Defined in:
- lib/humanize_enum/helpers.rb
Overview
Struct to be used in html selects and similar places
Instance Attribute Summary collapse
-
#checked ⇒ Object
Returns the value of attribute checked.
-
#id ⇒ Object
Returns the value of attribute id.
-
#text ⇒ Object
Returns the value of attribute text.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Attribute Details
#checked ⇒ Object
Returns the value of attribute checked
4 5 6 |
# File 'lib/humanize_enum/helpers.rb', line 4 def checked @checked end |
#id ⇒ Object
Returns the value of attribute id
4 5 6 |
# File 'lib/humanize_enum/helpers.rb', line 4 def id @id end |
#text ⇒ Object
Returns the value of attribute text
4 5 6 |
# File 'lib/humanize_enum/helpers.rb', line 4 def text @text end |
#value ⇒ Object
Returns the value of attribute value
4 5 6 |
# File 'lib/humanize_enum/helpers.rb', line 4 def value @value end |