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.



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

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.



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

def api_key
  @api_key
end

#subdomainObject (readonly)

Returns the value of attribute subdomain.



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

def subdomain
  @subdomain
end