Class: FinAppsCore::REST::Credentials
- Inherits:
-
Object
- Object
- FinAppsCore::REST::Credentials
- Defined in:
- lib/finapps_core/rest/credentials.rb
Overview
represents both tenant and user credentials
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(identifier, token) ⇒ Credentials
constructor
A new instance of Credentials.
- #valid? ⇒ Boolean
Constructor Details
#initialize(identifier, token) ⇒ Credentials
Returns a new instance of Credentials.
9 10 11 12 |
# File 'lib/finapps_core/rest/credentials.rb', line 9 def initialize(identifier, token) @identifier = identifier @token = token end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
7 8 9 |
# File 'lib/finapps_core/rest/credentials.rb', line 7 def identifier @identifier end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
7 8 9 |
# File 'lib/finapps_core/rest/credentials.rb', line 7 def token @token end |
Instance Method Details
#valid? ⇒ Boolean
14 15 16 |
# File 'lib/finapps_core/rest/credentials.rb', line 14 def valid? !token.nil? end |