Class: FinAppsCore::REST::Credentials

Inherits:
Object
  • Object
show all
Defined in:
lib/finapps_core/rest/credentials.rb

Overview

represents both tenant and user credentials

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#identifierObject (readonly)

Returns the value of attribute identifier.



7
8
9
# File 'lib/finapps_core/rest/credentials.rb', line 7

def identifier
  @identifier
end

#tokenObject (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

Returns:

  • (Boolean)


14
15
16
# File 'lib/finapps_core/rest/credentials.rb', line 14

def valid?
  !token.nil?
end