Class: Upkeep::SQLGlot::ColumnRef

Inherits:
Data
  • Object
show all
Defined in:
lib/upkeep/sqlglot.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



47
48
49
# File 'lib/upkeep/sqlglot.rb', line 47

def name
  @name
end

#tableObject (readonly)

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



47
48
49
# File 'lib/upkeep/sqlglot.rb', line 47

def table
  @table
end

Class Method Details

.from_native(value) ⇒ Object



48
49
50
# File 'lib/upkeep/sqlglot.rb', line 48

def self.from_native(value)
  new(table: value["table"], name: value.fetch("name"))
end