Class: Bamboozled::Base
- Inherits:
-
Object
- Object
- Bamboozled::Base
- Defined in:
- lib/bamboozled/base.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
- #employee ⇒ Object
-
#initialize(subdomain: nil, api_key: nil) ⇒ Base
constructor
A new instance of Base.
- #meta ⇒ Object
- #report ⇒ Object
- #time_off ⇒ Object
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
#request ⇒ Object (readonly)
Returns the value of attribute request.
3 4 5 |
# File 'lib/bamboozled/base.rb', line 3 def request @request end |
Instance Method Details
#employee ⇒ Object
9 10 11 |
# File 'lib/bamboozled/base.rb', line 9 def employee @employee ||= Bamboozled::API::Employee.new(@subdomain, @api_key) end |
#meta ⇒ Object
17 18 19 |
# File 'lib/bamboozled/base.rb', line 17 def @meta ||= Bamboozled::API::Meta.new(@subdomain, @api_key) end |
#report ⇒ Object
13 14 15 |
# File 'lib/bamboozled/base.rb', line 13 def report @report ||= Bamboozled::API::Report.new(@subdomain, @api_key) end |
#time_off ⇒ Object
21 22 23 |
# File 'lib/bamboozled/base.rb', line 21 def time_off @time_off ||= Bamboozled::API::TimeOff.new(@subdomain, @api_key) end |