Class: Locomotive::Steam::Liquid::ContentTypeFieldSelectOption
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Locomotive::Steam::Liquid::ContentTypeFieldSelectOption
- Defined in:
- lib/locomotive/steam/liquid/drops/content_entry_collection.rb
Instance Method Summary collapse
- #==(other_object) ⇒ Object
- #id ⇒ Object
-
#initialize(option) ⇒ ContentTypeFieldSelectOption
constructor
A new instance of ContentTypeFieldSelectOption.
- #name ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(option) ⇒ ContentTypeFieldSelectOption
Returns a new instance of ContentTypeFieldSelectOption.
95 96 97 |
# File 'lib/locomotive/steam/liquid/drops/content_entry_collection.rb', line 95 def initialize(option) @option = option end |
Instance Method Details
#==(other_object) ⇒ Object
107 108 109 |
# File 'lib/locomotive/steam/liquid/drops/content_entry_collection.rb', line 107 def ==(other_object) self.name == other_object end |
#id ⇒ Object
99 100 101 |
# File 'lib/locomotive/steam/liquid/drops/content_entry_collection.rb', line 99 def id @option._id.to_s end |
#name ⇒ Object
103 104 105 |
# File 'lib/locomotive/steam/liquid/drops/content_entry_collection.rb', line 103 def name @option.name end |
#to_s ⇒ Object
111 112 113 |
# File 'lib/locomotive/steam/liquid/drops/content_entry_collection.rb', line 111 def to_s self.name end |