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/faraday_rate_limiter.rb
Defined Under Namespace
Classes: Client, FaradayRateLimiter, Table
Constant Summary collapse
- Error =
Class.new(StandardError)
- VERSION =
"1.0.12"
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#throttle ⇒ Object
Returns the value of attribute throttle.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/airrecord.rb', line 11 def api_key @api_key end |
#throttle ⇒ Object
Returns the value of attribute throttle.
11 12 13 |
# File 'lib/airrecord.rb', line 11 def throttle @throttle end |
Class Method Details
.table(api_key, base_key, table_name) ⇒ Object
242 243 244 245 246 247 248 |
# File 'lib/airrecord/table.rb', line 242 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
15 16 17 18 19 |
# File 'lib/airrecord.rb', line 15 def throttle? return true if @throttle.nil? @throttle end |