Module: Airrecord

Extended by:
Airrecord
Included in:
Airrecord
Defined in:
lib/airrecord.rb,
lib/airrecord/table.rb,
lib/airrecord/client.rb,
lib/airrecord/version.rb,
lib/airrecord/query_string.rb,
lib/airrecord/faraday_rate_limiter.rb

Defined Under Namespace

Modules: QueryString Classes: Client, FaradayRateLimiter, Table

Constant Summary collapse

Error =
Class.new(StandardError)
VERSION =
"1.0.5"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



11
12
13
# File 'lib/airrecord.rb', line 11

def api_key
  @api_key
end

#throttleObject

Returns the value of attribute throttle.



12
13
14
# File 'lib/airrecord.rb', line 12

def throttle
  @throttle
end

Class Method Details

.table(api_key, base_key, table_name) ⇒ Object



229
230
231
232
233
234
235
# File 'lib/airrecord/table.rb', line 229

def self.table(api_key, base_key, table_name)
  Class.new(Table) do |klass|
    klass.table_name = table_name
    klass.api_key = api_key
    klass.base_key = base_key
  end
end

Instance Method Details

#throttle?Boolean

Returns:

  • (Boolean)


14
15
16
17
# File 'lib/airrecord.rb', line 14

def throttle?
  return true if @throttle.nil?
  @throttle
end