Class: Bamboozled::API::Base
- Inherits:
-
Object
- Object
- Bamboozled::API::Base
- Defined in:
- lib/bamboozled/api/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#subdomain ⇒ Object
readonly
Returns the value of attribute subdomain.
Instance Method Summary collapse
-
#initialize(subdomain, api_key, httparty_options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(subdomain, api_key, httparty_options = {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 |
# File 'lib/bamboozled/api/base.rb', line 9 def initialize(subdomain, api_key, = {}) @subdomain = subdomain @api_key = api_key @httparty_options = || {} end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/bamboozled/api/base.rb', line 7 def api_key @api_key end |
#subdomain ⇒ Object (readonly)
Returns the value of attribute subdomain.
7 8 9 |
# File 'lib/bamboozled/api/base.rb', line 7 def subdomain @subdomain end |