Class: WorkOS::AuthorizedConnectApplicationListData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthorizedConnectApplicationListData
- 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
-
#application ⇒ Object
Returns the value of attribute application.
-
#granted_scopes ⇒ Object
Returns the value of attribute granted_scopes.
-
#id ⇒ Object
Returns the value of attribute id.
-
#oauth_resource ⇒ Object
Returns the value of attribute oauth_resource.
-
#object ⇒ Object
Returns the value of attribute object.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthorizedConnectApplicationListData
constructor
A new instance of AuthorizedConnectApplicationListData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
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
#application ⇒ Object
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_scopes ⇒ Object
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 |
#id ⇒ Object
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_resource ⇒ Object
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 |
#object ⇒ Object
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 |