Class: WorkOS::Waitlist

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_atObject

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

#idObject

Returns the value of attribute id.



14
15
16
# File 'lib/workos/user_management/waitlist.rb', line 14

def id
  @id
end

#objectObject

Returns the value of attribute object.



14
15
16
# File 'lib/workos/user_management/waitlist.rb', line 14

def object
  @object
end

#updated_atObject

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