class Cpaas::Config
@private
Attributes
base_url[RW]
client_id[RW]
client_secret[RW]
email[RW]
password[RW]
Public Instance Methods
validate()
click to toggle source
# File lib/cpaas-sdk/config.rb, line 11 def validate raise ArgumentError.new('`client_id` cannot be nil') if client_id.nil? raise ArgumentError.new('`clientSecret` or `email/password` cannot be nil') if client_secret.nil? && (email.nil? || password.nil?) true end