Class: Rafflesia::OrganizationSelectionRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/auth/organization_selection_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  organization_id: :organization_id,
  pending_authentication_token: :pending_authentication_token
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ OrganizationSelectionRequest

Returns a new instance of OrganizationSelectionRequest.



17
18
19
20
21
22
# File 'lib/rafflesia/auth/organization_selection_request.rb', line 17

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @organization_id = hash[:organization_id]
  @pending_authentication_token = hash[:pending_authentication_token]
end

Instance Attribute Details

#organization_idObject

Returns the value of attribute organization_id.



13
14
15
# File 'lib/rafflesia/auth/organization_selection_request.rb', line 13

def organization_id
  @organization_id
end

#pending_authentication_tokenObject

Returns the value of attribute pending_authentication_token.



13
14
15
# File 'lib/rafflesia/auth/organization_selection_request.rb', line 13

def pending_authentication_token
  @pending_authentication_token
end