Class: WorkOS::CreateObjectRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateObjectRequest
- Defined in:
- lib/workos/vault/create_object_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ key_context: :key_context, name: :name, value: :value }.freeze
Instance Attribute Summary collapse
-
#key_context ⇒ Object
Returns the value of attribute key_context.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateObjectRequest
constructor
A new instance of CreateObjectRequest.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ CreateObjectRequest
Returns a new instance of CreateObjectRequest.
18 19 20 21 22 23 |
# File 'lib/workos/vault/create_object_request.rb', line 18 def initialize(json) hash = self.class.normalize(json) @key_context = hash[:key_context] || {} @name = hash[:name] @value = hash[:value] end |
Instance Attribute Details
#key_context ⇒ Object
Returns the value of attribute key_context.
13 14 15 |
# File 'lib/workos/vault/create_object_request.rb', line 13 def key_context @key_context end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/workos/vault/create_object_request.rb', line 13 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
13 14 15 |
# File 'lib/workos/vault/create_object_request.rb', line 13 def value @value end |