Class: Bamboozled::API::Base

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

Direct Known Subclasses

Employee, Meta, Report, TimeOff

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subdomain, api_key) ⇒ Base

Returns a new instance of Base.



10
11
12
# File 'lib/bamboozled/api/base.rb', line 10

def initialize(subdomain, api_key)
  @subdomain, @api_key = subdomain, api_key
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#subdomainObject (readonly)

Returns the value of attribute subdomain.



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

def subdomain
  @subdomain
end