Sha256: d9a16383a536fdedf9acd62bd2ed8a1f51c189ee5b98f6e0f40ac1a10ab00f47
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 Bytes
Contents
module Alman class DefaultClient < ApiClient def initialize(api_key) self.refresh_from(api_key) end def refresh_from(api_key) headers = { :Accept => "application/json", :"Content-Type" => "application/json", :Authorization => api_key, } params = {} super(headers, params) end def calendars @calendars ||= CalendarsEndpoint.new(self) end def vacancies @vacancies ||= VacanciesEndpoint.new(self) end def bookings @bookings ||= BookingsEndpoint.new(self) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alman-0.0.2 | lib/alman/clients/default_client.rb |
alman-0.0.1 | lib/alman/clients/default_client.rb |