Class: WorkOS::UpdateAuthorizationResource
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::UpdateAuthorizationResource
- Defined in:
- lib/workos/authorization/update_authorization_resource.rb
Constant Summary collapse
- HASH_ATTRS =
{ name: :name, description: :description, parent_resource_id: :parent_resource_id, parent_resource_external_id: :parent_resource_external_id, parent_resource_type_slug: :parent_resource_type_slug }.freeze
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_resource_external_id ⇒ Object
Returns the value of attribute parent_resource_external_id.
-
#parent_resource_id ⇒ Object
Returns the value of attribute parent_resource_id.
-
#parent_resource_type_slug ⇒ Object
Returns the value of attribute parent_resource_type_slug.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateAuthorizationResource
constructor
A new instance of UpdateAuthorizationResource.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ UpdateAuthorizationResource
Returns a new instance of UpdateAuthorizationResource.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/authorization/update_authorization_resource.rb', line 22 def initialize(json) hash = self.class.normalize(json) @name = hash[:name] @description = hash[:description] @parent_resource_id = hash[:parent_resource_id] @parent_resource_external_id = hash[:parent_resource_external_id] @parent_resource_type_slug = hash[:parent_resource_type_slug] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
15 16 17 |
# File 'lib/workos/authorization/update_authorization_resource.rb', line 15 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/workos/authorization/update_authorization_resource.rb', line 15 def name @name end |
#parent_resource_external_id ⇒ Object
Returns the value of attribute parent_resource_external_id.
15 16 17 |
# File 'lib/workos/authorization/update_authorization_resource.rb', line 15 def parent_resource_external_id @parent_resource_external_id end |
#parent_resource_id ⇒ Object
Returns the value of attribute parent_resource_id.
15 16 17 |
# File 'lib/workos/authorization/update_authorization_resource.rb', line 15 def parent_resource_id @parent_resource_id end |
#parent_resource_type_slug ⇒ Object
Returns the value of attribute parent_resource_type_slug.
15 16 17 |
# File 'lib/workos/authorization/update_authorization_resource.rb', line 15 def parent_resource_type_slug @parent_resource_type_slug end |