Class: BN::API::Base
- Inherits:
-
Object
- Object
- BN::API::Base
- Includes:
- Helpers::HasAttributes
- Defined in:
- lib/bn/api/base.rb
Overview
The base class for API requesters.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Helpers::HasAttributes
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
13 14 15 16 17 18 19 |
# File 'lib/bn/api/base.rb', line 13 def initialize(attributes={}) self.region = :us super raise Error::API::InvalidKey if @key.nil? end |