Class: WorkOS::AuthorizedConnectApplicationListData

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/user_management/authorized_connect_application_list_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  granted_scopes: :granted_scopes,
  oauth_resource: :oauth_resource,
  application: :application
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ AuthorizedConnectApplicationListData

Returns a new instance of AuthorizedConnectApplicationListData.



22
23
24
25
26
27
28
29
# File 'lib/workos/user_management/authorized_connect_application_list_data.rb', line 22

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @granted_scopes = hash[:granted_scopes] || []
  @oauth_resource = hash[:oauth_resource]
  @application = hash[:application] ? WorkOS::ConnectApplication.new(hash[:application]) : nil
end

Instance Attribute Details

#applicationObject

Returns the value of attribute application.



15
16
17
# File 'lib/workos/user_management/authorized_connect_application_list_data.rb', line 15

def application
  @application
end

#granted_scopesObject

Returns the value of attribute granted_scopes.



15
16
17
# File 'lib/workos/user_management/authorized_connect_application_list_data.rb', line 15

def granted_scopes
  @granted_scopes
end

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/workos/user_management/authorized_connect_application_list_data.rb', line 15

def id
  @id
end

#oauth_resourceObject

Returns the value of attribute oauth_resource.



15
16
17
# File 'lib/workos/user_management/authorized_connect_application_list_data.rb', line 15

def oauth_resource
  @oauth_resource
end

#objectObject

Returns the value of attribute object.



15
16
17
# File 'lib/workos/user_management/authorized_connect_application_list_data.rb', line 15

def object
  @object
end