Class: WorkOS::AgentBlueprintsCreateRequestInvocableBy

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/agents/agent_blueprints_create_request_invocable_by.rb

Constant Summary collapse

HASH_ATTRS =
{
  role_slugs: :role_slugs,
  organization_ids: :organization_ids
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentBlueprintsCreateRequestInvocableBy

Returns a new instance of AgentBlueprintsCreateRequestInvocableBy.



16
17
18
19
20
# File 'lib/workos/agents/agent_blueprints_create_request_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_idsObject

Returns the value of attribute organization_ids.



12
13
14
# File 'lib/workos/agents/agent_blueprints_create_request_invocable_by.rb', line 12

def organization_ids
  @organization_ids
end

#role_slugsObject

Returns the value of attribute role_slugs.



12
13
14
# File 'lib/workos/agents/agent_blueprints_create_request_invocable_by.rb', line 12

def role_slugs
  @role_slugs
end