Sha256: 46b49e036724081181d4023b61927461b6c827edc24503ff22ad0284f0a1df5e

Contents?: true

Size: 307 Bytes

Versions: 8

Compression:

Stored size: 307 Bytes

Contents

class BookingSync::Engine::CredentialsResolver
  attr_reader :host
  private :host

  def initialize(host)
    @host = host
  end

  def call
    BookingSync::Engine::ApplicationCredentials.new(application)
  end

  private

  def application
    @application ||= ::Application.find_by_host(host)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bookingsync-engine-6.0.1 lib/bookingsync/engine/credentials_resolver.rb
bookingsync-engine-6.0.0 lib/bookingsync/engine/credentials_resolver.rb
bookingsync-engine-5.1.0 lib/bookingsync/engine/credentials_resolver.rb
bookingsync-engine-5.0.0 lib/bookingsync/engine/credentials_resolver.rb
bookingsync-engine-4.0.3 lib/bookingsync/engine/credentials_resolver.rb
bookingsync-engine-4.0.2 lib/bookingsync/engine/credentials_resolver.rb
bookingsync-engine-4.0.1 lib/bookingsync/engine/credentials_resolver.rb
bookingsync-engine-4.0.0 lib/bookingsync/engine/credentials_resolver.rb