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