Class: BN::API::Base

Inherits:
Object
  • Object
show all
Includes:
Helpers::HasAttributes
Defined in:
lib/bn/api/base.rb

Overview

The base class for API requesters.

Direct Known Subclasses

D3, SC3, WOW

Instance Method Summary collapse

Methods included from Helpers::HasAttributes

included, #update_attributes

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