Class: Mobility::Sequel::SQL::QualifiedIdentifier

Inherits:
Sequel::SQL::QualifiedIdentifier
  • Object
show all
Defined in:
lib/mobility/sequel/sql.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table, column, locale, backend_class, attribute_name: nil) ⇒ QualifiedIdentifier

Returns a new instance of QualifiedIdentifier.


7
8
9
10
11
12
# File 'lib/mobility/sequel/sql.rb', line 7

def initialize(table, column, locale, backend_class, attribute_name: nil)
  @backend_class = backend_class
  @locale = locale
  @attribute_name = attribute_name || column
  super(table, column)
end

Instance Attribute Details

#attribute_nameObject (readonly)

Returns the value of attribute attribute_name


5
6
7
# File 'lib/mobility/sequel/sql.rb', line 5

def attribute_name
  @attribute_name
end

#backend_classObject (readonly)

Returns the value of attribute backend_class


5
6
7
# File 'lib/mobility/sequel/sql.rb', line 5

def backend_class
  @backend_class
end

#localeObject (readonly)

Returns the value of attribute locale


5
6
7
# File 'lib/mobility/sequel/sql.rb', line 5

def locale
  @locale
end