Class: Pricesphere::Base
- Inherits:
-
Object
- Object
- Pricesphere::Base
- Defined in:
- lib/pricesphere/base.rb
Instance Method Summary collapse
-
#initialize(api_key = '', version = 'v1') ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(api_key = '', version = 'v1') ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/pricesphere/base.rb', line 8 def initialize(api_key = '', version = 'v1') raise Error.new("Missing API Key", 'You did not supply an API ey, please sign up for an account at https://www.pricesphere.com') if api_key == '' @api_key = api_key @version = version end |