Sha256: d5258bc3910a9f34615605848920ab3392a9629218dbc8bd1678c972b08a0ba6

Contents?: true

Size: 346 Bytes

Versions: 8

Compression:

Stored size: 346 Bytes

Contents

class BookingSync::Engine::ApplicationCredentials
  attr_reader :client_id
  attr_reader :client_secret

  def initialize(application = nil)
    if application.present?
      @client_id = application.client_id
      @client_secret = application.client_secret
    end
  end

  def valid?
    client_id.present? && client_secret.present?
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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