Class: Bamboozled::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subdomain: nil, api_key: nil) ⇒ Base

Returns a new instance of Base.



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

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

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



3
4
5
# File 'lib/bamboozled/base.rb', line 3

def request
  @request
end

Instance Method Details

#employeeObject



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

def employee
  @employee ||= Bamboozled::API::Employee.new(@subdomain, @api_key)
end

#metaObject



17
18
19
# File 'lib/bamboozled/base.rb', line 17

def meta
  @meta ||= Bamboozled::API::Meta.new(@subdomain, @api_key)
end

#reportObject



13
14
15
# File 'lib/bamboozled/base.rb', line 13

def report
  @report ||= Bamboozled::API::Report.new(@subdomain, @api_key)
end

#time_offObject



21
22
23
# File 'lib/bamboozled/base.rb', line 21

def time_off
  @time_off ||= Bamboozled::API::TimeOff.new(@subdomain, @api_key)
end