Class: WorkOS::Waitlist
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::Waitlist
- Defined in:
- lib/workos/user_management/waitlist.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#object ⇒ Object
Returns the value of attribute object.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ Waitlist
constructor
A new instance of Waitlist.
Constructor Details
#initialize(json) ⇒ Waitlist
Returns a new instance of Waitlist.
20 21 22 23 24 25 26 |
# File 'lib/workos/user_management/waitlist.rb', line 20 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
14 15 16 |
# File 'lib/workos/user_management/waitlist.rb', line 14 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
14 15 16 |
# File 'lib/workos/user_management/waitlist.rb', line 14 def id @id end |
#object ⇒ Object
Returns the value of attribute object.
14 15 16 |
# File 'lib/workos/user_management/waitlist.rb', line 14 def object @object end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
14 15 16 |
# File 'lib/workos/user_management/waitlist.rb', line 14 def updated_at @updated_at end |