Class: WorkOS::AgentRegistrationOrganizationSwitchedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentRegistrationOrganizationSwitchedData
- Defined in:
- lib/workos/shared/agent_registration_organization_switched_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ agent_registration_id: :agent_registration_id, from_organization_id: :from_organization_id, to_organization_id: :to_organization_id }.freeze
Instance Attribute Summary collapse
-
#agent_registration_id ⇒ Object
Returns the value of attribute agent_registration_id.
-
#from_organization_id ⇒ Object
Returns the value of attribute from_organization_id.
-
#to_organization_id ⇒ Object
Returns the value of attribute to_organization_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentRegistrationOrganizationSwitchedData
constructor
A new instance of AgentRegistrationOrganizationSwitchedData.
Constructor Details
#initialize(json) ⇒ AgentRegistrationOrganizationSwitchedData
Returns a new instance of AgentRegistrationOrganizationSwitchedData.
18 19 20 21 22 23 |
# File 'lib/workos/shared/agent_registration_organization_switched_data.rb', line 18 def initialize(json) hash = self.class.normalize(json) @agent_registration_id = hash[:agent_registration_id] @from_organization_id = hash[:from_organization_id] @to_organization_id = hash[:to_organization_id] end |
Instance Attribute Details
#agent_registration_id ⇒ Object
Returns the value of attribute agent_registration_id.
13 14 15 |
# File 'lib/workos/shared/agent_registration_organization_switched_data.rb', line 13 def agent_registration_id @agent_registration_id end |
#from_organization_id ⇒ Object
Returns the value of attribute from_organization_id.
13 14 15 |
# File 'lib/workos/shared/agent_registration_organization_switched_data.rb', line 13 def from_organization_id @from_organization_id end |
#to_organization_id ⇒ Object
Returns the value of attribute to_organization_id.
13 14 15 |
# File 'lib/workos/shared/agent_registration_organization_switched_data.rb', line 13 def to_organization_id @to_organization_id end |