Class: ActiveRecord::ConnectionAdapters::Elasticsearch::TableMetaDefinition

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_meta_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

attributes



12
13
14
# File 'lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_meta_definition.rb', line 12

def name
  @name
end

#valueObject

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