Class: ActiveRecord::ConnectionAdapters::Elasticsearch::TableAliasDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Elasticsearch::TableAliasDefinition
- Includes:
- ActiveModel::Validations, AttributeMethods
- Defined in:
- lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_alias_definition.rb
Constant Summary collapse
- ATTRIBUTES =
available alias properties
[:filter, :index_routing, :is_hidden, :is_write_index, :routing, :search_routing].freeze
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#name ⇒ Object
attributes.
-
#state ⇒ Object
included
from AttributeMethods
readonly
Returns the value of attribute state.
Instance Method Summary collapse
- #error_messages ⇒ Object included from AttributeMethods
-
#initialize(name, attributes) ⇒ TableAliasDefinition
constructor
A new instance of TableAliasDefinition.
- #state? ⇒ Boolean included from AttributeMethods
- #with_state(state) ⇒ Object included from AttributeMethods
Constructor Details
#initialize(name, attributes) ⇒ TableAliasDefinition
Returns a new instance of TableAliasDefinition.
25 26 27 28 |
# File 'lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_alias_definition.rb', line 25 def initialize(name, attributes) self.name = name.to_sym self.attributes = attributes.symbolize_keys end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
19 20 21 |
# File 'lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_alias_definition.rb', line 19 def attributes @attributes end |
#name ⇒ Object
attributes
18 19 20 |
# File 'lib/active_record/connection_adapters/elasticsearch/schema_definitions/table_alias_definition.rb', line 18 def name @name end |
#state ⇒ Object (readonly) Originally defined in module AttributeMethods
Returns the value of attribute state.