Module: Norairrecord
- Extended by:
- Norairrecord
- Included in:
- Norairrecord
- Defined in:
- lib/norairrecord.rb,
lib/norairrecord/util.rb,
lib/norairrecord/table.rb,
lib/norairrecord/client.rb,
lib/norairrecord/version.rb,
lib/norairrecord/faraday_rate_limiter.rb
Defined Under Namespace
Modules: Util Classes: Client, FaradayRateLimiter, Table
Constant Summary collapse
- Error =
Class.new(StandardError)
- UnknownTypeError =
Class.new(Error)
- RecordNotFoundError =
Class.new(Error)
- VERSION =
"0.5.1"
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#rps_limit ⇒ Object
Returns the value of attribute rps_limit.
-
#throttle ⇒ Object
Returns the value of attribute throttle.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
12 13 14 |
# File 'lib/norairrecord.rb', line 12 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
12 13 14 |
# File 'lib/norairrecord.rb', line 12 def base_url @base_url end |
#rps_limit ⇒ Object
Returns the value of attribute rps_limit.
12 13 14 |
# File 'lib/norairrecord.rb', line 12 def rps_limit @rps_limit end |
#throttle ⇒ Object
Returns the value of attribute throttle.
12 13 14 |
# File 'lib/norairrecord.rb', line 12 def throttle @throttle end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
12 13 14 |
# File 'lib/norairrecord.rb', line 12 def user_agent @user_agent end |
Class Method Details
.table(api_key, base_key, table_name) ⇒ Object
459 460 461 462 463 464 465 |
# File 'lib/norairrecord/table.rb', line 459 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
18 19 20 21 22 |
# File 'lib/norairrecord.rb', line 18 def throttle? return true if @throttle.nil? @throttle end |