class BookingSync::Engine::CredentialsResolver
Attributes
host[R]
Public Class Methods
new(host)
click to toggle source
# File lib/bookingsync/engine/credentials_resolver.rb, line 5 def initialize(host) @host = host end
Public Instance Methods
call()
click to toggle source
# File lib/bookingsync/engine/credentials_resolver.rb, line 9 def call BookingSync::Engine::ApplicationCredentials.new(application) end
Private Instance Methods
application()
click to toggle source
# File lib/bookingsync/engine/credentials_resolver.rb, line 15 def application @application ||= ::Application.find_by_host(host) end