Class: Concourse::Models::Token
- Inherits:
-
Object
- Object
- Concourse::Models::Token
- Defined in:
- lib/concourse/models/token.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#id_token ⇒ Object
readonly
Returns the value of attribute id_token.
-
#token_type ⇒ Object
readonly
Returns the value of attribute token_type.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(parameters) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(parameters) ⇒ Token
Returns a new instance of Token.
8 9 10 11 12 13 |
# File 'lib/concourse/models/token.rb', line 8 def initialize(parameters) @access_token = parameters[:access_token] @token_type = parameters[:token_type] @expires_at = parameters[:expires_at] @id_token = parameters[:id_token] end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
6 7 8 |
# File 'lib/concourse/models/token.rb', line 6 def access_token @access_token end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
6 7 8 |
# File 'lib/concourse/models/token.rb', line 6 def expires_at @expires_at end |
#id_token ⇒ Object (readonly)
Returns the value of attribute id_token.
6 7 8 |
# File 'lib/concourse/models/token.rb', line 6 def id_token @id_token end |
#token_type ⇒ Object (readonly)
Returns the value of attribute token_type.
6 7 8 |
# File 'lib/concourse/models/token.rb', line 6 def token_type @token_type end |
Instance Method Details
#==(other) ⇒ Object
15 16 17 |
# File 'lib/concourse/models/token.rb', line 15 def ==(other) other.class == self.class && other.state == state end |
#eql?(other) ⇒ Boolean
19 20 21 |
# File 'lib/concourse/models/token.rb', line 19 def eql?(other) self == other end |
#hash ⇒ Object
23 24 25 |
# File 'lib/concourse/models/token.rb', line 23 def hash state.hash end |