Class: Locomotive::Steam::Liquid::ContentTypeFieldSelectOption

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/locomotive/steam/liquid/drops/content_entry_collection.rb

Instance Method Summary collapse

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

#idObject



99
100
101
# File 'lib/locomotive/steam/liquid/drops/content_entry_collection.rb', line 99

def id
  @option._id.to_s
end

#nameObject



103
104
105
# File 'lib/locomotive/steam/liquid/drops/content_entry_collection.rb', line 103

def name
  @option.name
end

#to_sObject



111
112
113
# File 'lib/locomotive/steam/liquid/drops/content_entry_collection.rb', line 111

def to_s
  self.name
end