class Purview::Tables::TableMetadata

Public Class Methods

new(database) click to toggle source
Calls superclass method Purview::Tables::Base::new
# File lib/purview/tables/table_metadata.rb, line 4
def initialize(database)
  super(
    :table_metadata,
    :columns => [
      table_name_column,
      enabled_at_column,
      last_pulled_at_column,
      last_updated_at_column,
      locked_at_column,
      max_timestamp_pulled_column,
    ],
    :database => database
  )
end

Public Instance Methods

enabled_at_column() click to toggle source
# File lib/purview/tables/table_metadata.rb, line 19
def enabled_at_column
  Purview::Columns::Timestamp.new(:enabled_at)
end
last_pulled_at_column() click to toggle source
# File lib/purview/tables/table_metadata.rb, line 23
def last_pulled_at_column
  Purview::Columns::Timestamp.new(:last_pulled_at)
end
last_updated_at_column() click to toggle source
# File lib/purview/tables/table_metadata.rb, line 27
def last_updated_at_column
  Purview::Columns::Timestamp.new(:last_updated_at)
end
locked_at_column() click to toggle source
# File lib/purview/tables/table_metadata.rb, line 31
def locked_at_column
  Purview::Columns::Timestamp.new(:locked_at)
end
max_timestamp_pulled_column() click to toggle source
# File lib/purview/tables/table_metadata.rb, line 35
def max_timestamp_pulled_column
  Purview::Columns::Timestamp.new(:max_timestamp_pulled)
end
table_name_column() click to toggle source
# File lib/purview/tables/table_metadata.rb, line 39
def table_name_column
  Purview::Columns::Id.new(
    :table_name,
    :type => Purview::Types::String,
    :limit => 255,
  )
end