class BookingSync::Engine::ApplicationCredentials
Attributes
client_id[R]
client_secret[R]
Public Class Methods
new(application = nil)
click to toggle source
# File lib/bookingsync/engine/application_credentials.rb, line 5 def initialize(application = nil) if application.present? @client_id = application.client_id @client_secret = application.client_secret end end
Public Instance Methods
valid?()
click to toggle source
# File lib/bookingsync/engine/application_credentials.rb, line 12 def valid? client_id.present? && client_secret.present? end