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