Class: ActiveRecord::ConnectionAdapters::Elasticsearch::TableMetaDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Elasticsearch::TableMetaDefinition
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_meta_definition.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
attributes.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ TableMetaDefinition
constructor
A new instance of TableMetaDefinition.
Constructor Details
#initialize(name, value) ⇒ TableMetaDefinition
Returns a new instance of TableMetaDefinition.
17 18 19 20 |
# File 'lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_meta_definition.rb', line 17 def initialize(name, value) @name = name.to_sym @value = value end |
Instance Attribute Details
#name ⇒ Object
attributes
12 13 14 |
# File 'lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_meta_definition.rb', line 12 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
13 14 15 |
# File 'lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_meta_definition.rb', line 13 def value @value end |