class Intermix::Table

Constants

FIELDS

Public Class Methods

new(data) click to toggle source
# File lib/intermix/table.rb, line 18
def initialize(data)
  raise ArgumentError, 'data cannot be nil.' unless data.present?

  self.class::FIELDS.each { |field| send("#{field}=", data[field]) }
end

Public Instance Methods

full_name() click to toggle source
# File lib/intermix/table.rb, line 24
def full_name
  "\"#{schema_name}\".\"#{table_name}\""
end