Class: Bamboozled::API::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/bamboozled/api/base.rb

Direct Known Subclasses

Employee, Meta, Report, TimeOff, TimeTracking

Instance Attribute Summary collapse

Instance Method Summary collapse

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, httparty_options = {})
  @subdomain = subdomain
  @api_key = api_key
  @httparty_options = httparty_options || {}
end

Instance Attribute Details

#api_keyObject (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

#subdomainObject (readonly)

Returns the value of attribute subdomain.



7
8
9
# File 'lib/bamboozled/api/base.rb', line 7

def subdomain
  @subdomain
end