Class: ClientSDK
- Inherits:
-
Object
- Object
- ClientSDK
- Defined in:
- lib/client_sdk.rb
Instance Attribute Summary collapse
-
#client_key ⇒ Object
Returns the value of attribute client_key.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#team_name ⇒ Object
Returns the value of attribute team_name.
Instance Method Summary collapse
-
#initialize(team_name, client_key, client_secret) ⇒ ClientSDK
constructor
A new instance of ClientSDK.
- #to_s ⇒ Object
Constructor Details
#initialize(team_name, client_key, client_secret) ⇒ ClientSDK
Returns a new instance of ClientSDK.
4 5 6 7 8 9 10 11 12 |
# File 'lib/client_sdk.rb', line 4 def initialize(team_name, client_key, client_secret) raise ArgumentError, 'Team Name is not valid' unless !team_name.empty? raise ArgumentError, 'Client Key is not valid' unless !client_key.empty? raise ArgumentError, 'Client Secret is not valid' unless !client_secret.empty? @team_name = team_name @client_key = client_key @client_secret = client_secret end |
Instance Attribute Details
#client_key ⇒ Object
Returns the value of attribute client_key.
2 3 4 |
# File 'lib/client_sdk.rb', line 2 def client_key @client_key end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
2 3 4 |
# File 'lib/client_sdk.rb', line 2 def client_secret @client_secret end |
#team_name ⇒ Object
Returns the value of attribute team_name.
2 3 4 |
# File 'lib/client_sdk.rb', line 2 def team_name @team_name end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/client_sdk.rb', line 14 def to_s "{ team_name: #{@team_name}, client_key: #{@client_key}, client_secret: #{@client_secret} }" end |