Class: Rafflesia::CliRefreshRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CliRefreshRequest
- Defined in:
- lib/rafflesia/auth/cli_refresh_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ organization_id: :organization_id, refresh_token: :refresh_token }.freeze
Instance Attribute Summary collapse
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
Instance Method Summary collapse
-
#initialize(json) ⇒ CliRefreshRequest
constructor
A new instance of CliRefreshRequest.
Constructor Details
#initialize(json) ⇒ CliRefreshRequest
Returns a new instance of CliRefreshRequest.
17 18 19 20 21 22 |
# File 'lib/rafflesia/auth/cli_refresh_request.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @organization_id = hash[:organization_id] @refresh_token = hash[:refresh_token] end |
Instance Attribute Details
#organization_id ⇒ Object
Returns the value of attribute organization_id.
13 14 15 |
# File 'lib/rafflesia/auth/cli_refresh_request.rb', line 13 def organization_id @organization_id end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
13 14 15 |
# File 'lib/rafflesia/auth/cli_refresh_request.rb', line 13 def refresh_token @refresh_token end |