Class: Mobility::Backends::Sequel::KeyValue::QualifiedIdentifier
- Inherits:
-
Sequel::SQL::QualifiedIdentifier
- Object
- Sequel::SQL::QualifiedIdentifier
- Mobility::Backends::Sequel::KeyValue::QualifiedIdentifier
- Defined in:
- lib/mobility/backends/sequel/key_value.rb
Instance Attribute Summary collapse
-
#attribute_name ⇒ Object
readonly
Returns the value of attribute attribute_name.
-
#backend_class ⇒ Object
readonly
Returns the value of attribute backend_class.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
Instance Method Summary collapse
-
#initialize(table, column, locale, backend_class, attribute_name) ⇒ QualifiedIdentifier
constructor
A new instance of QualifiedIdentifier.
Constructor Details
#initialize(table, column, locale, backend_class, attribute_name) ⇒ QualifiedIdentifier
Returns a new instance of QualifiedIdentifier.
224 225 226 227 228 229 |
# File 'lib/mobility/backends/sequel/key_value.rb', line 224 def initialize(table, column, locale, backend_class, attribute_name) @backend_class = backend_class @locale = locale @attribute_name = attribute_name || column super(table, column) end |
Instance Attribute Details
#attribute_name ⇒ Object (readonly)
Returns the value of attribute attribute_name.
222 223 224 |
# File 'lib/mobility/backends/sequel/key_value.rb', line 222 def attribute_name @attribute_name end |
#backend_class ⇒ Object (readonly)
Returns the value of attribute backend_class.
222 223 224 |
# File 'lib/mobility/backends/sequel/key_value.rb', line 222 def backend_class @backend_class end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
222 223 224 |
# File 'lib/mobility/backends/sequel/key_value.rb', line 222 def locale @locale end |