module Airmodel

builds ActiveRecord-style models on top of Airtable

Constants

VERSION

Public Class Methods

bases(path_to_config_file=" click to toggle source
# File lib/airmodel.rb, line 21
def self.bases(path_to_config_file="#{Dir.pwd}/config/bases.yml")
  @@bases ||= YAML.load_file(path_to_config_file)
  @@bases
end
client(api_key=ENV.fetch("AIRTABLE_API_KEY") ) click to toggle source
# File lib/airmodel.rb, line 16
def self.client(api_key=ENV.fetch("AIRTABLE_API_KEY") )
  @@api_client ||= Airtable::Client.new(api_key)
  @@api_client
end
root() click to toggle source
# File lib/airmodel.rb, line 12
def self.root
  File.expand_path '../..', __FILE__
end
warn() click to toggle source
# File lib/airmodel.rb, line 26
def self.warn
  Kernel.warn "Airmodel is no longer maintained. Please migrate to Airrecord (https://rubygems.org/gems/airrecord)"
end