Class: Locomotive::Steam::ContentTypeField::SelectOption

Inherits:
Object
  • Object
show all
Includes:
Models::Entity
Defined in:
lib/locomotive/steam/entities/content_type_field.rb

Instance Attribute Summary collapse

Attributes included from Models::Entity

#associations, #attributes, #base_url, #localized_attributes

Instance Method Summary collapse

Methods included from Models::Entity

#[], #[]=, #_id, #change, #initialize, #method_missing, #respond_to?, #serialize

Methods included from Models::Concerns::ToJson

#as_json, #to_hash, #to_json

Methods included from Models::Concerns::Validation

#errors, #valid?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Locomotive::Steam::Models::Entity

Instance Attribute Details

#fieldObject

Returns the value of attribute field.



78
79
80
# File 'lib/locomotive/steam/entities/content_type_field.rb', line 78

def field
  @field
end

Instance Method Details

#nameObject



80
81
82
# File 'lib/locomotive/steam/entities/content_type_field.rb', line 80

def name
  self[:name]
end