class Alman::DefaultClient

Public Class Methods

new(api_key) click to toggle source
# File lib/alman/clients/default_client.rb, line 4
def initialize(api_key)
  self.refresh_from(api_key)
end

Public Instance Methods

bookings() click to toggle source
# File lib/alman/clients/default_client.rb, line 26
def bookings
  @bookings ||= BookingsEndpoint.new(self)
end
calendars() click to toggle source
# File lib/alman/clients/default_client.rb, line 18
def calendars
  @calendars ||= CalendarsEndpoint.new(self)
end
refresh_from(api_key) click to toggle source
Calls superclass method Alman::ApiClient#refresh_from
# File lib/alman/clients/default_client.rb, line 8
def refresh_from(api_key)
  headers = {
    :Accept => "application/json",
    :"Content-Type" => "application/json",
    :Authorization => api_key,
  }
  params = {}
  super(headers, params)
end
vacancies() click to toggle source
# File lib/alman/clients/default_client.rb, line 22
def vacancies
  @vacancies ||= VacanciesEndpoint.new(self)
end