module BookingSync::Engine::Models::MultiApplicationsAccount

Public Instance Methods

application() click to toggle source
# File lib/bookingsync/engine/models/multi_applications_account.rb, line 50
def application
  @application ||= Application.find_by_host(host)
end
application_token() click to toggle source
# File lib/bookingsync/engine/models/multi_applications_account.rb, line 36
def application_token
  BookingSync::Engine.application_token(
    client_id: application.client_id,
    client_secret: application.client_secret
  )
end
oauth_client() click to toggle source
# File lib/bookingsync/engine/models/multi_applications_account.rb, line 43
def oauth_client
  BookingSync::Engine.oauth_client(
    client_id: application.client_id,
    client_secret: application.client_secret
  )
end