Class: HumanizeEnum::SelectOption
- Inherits:
-
Struct
- Object
- Struct
- HumanizeEnum::SelectOption
- Defined in:
- lib/humanize_enum.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
34 35 36 |
# File 'lib/humanize_enum.rb', line 34 def checked @checked end |
#id ⇒ Object
Returns the value of attribute id
34 35 36 |
# File 'lib/humanize_enum.rb', line 34 def id @id end |
#text ⇒ Object
Returns the value of attribute text
34 35 36 |
# File 'lib/humanize_enum.rb', line 34 def text @text end |
#value ⇒ Object
Returns the value of attribute value
34 35 36 |
# File 'lib/humanize_enum.rb', line 34 def value @value end |