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