Class: WorkOS::ListMetadata

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/agents/list_metadata.rb

Constant Summary collapse

HASH_ATTRS =
{
  after: :after,
  before: :before
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ListMetadata

Returns a new instance of ListMetadata.



16
17
18
19
20
# File 'lib/workos/agents/list_metadata.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @after = hash[:after]
  @before = hash[:before]
end

Instance Attribute Details

#after ⇒ Object

Returns the value of attribute after.



12
13
14
# File 'lib/workos/agents/list_metadata.rb', line 12

def after
  @after
end

#before ⇒ Object

Returns the value of attribute before.



12
13
14
# File 'lib/workos/agents/list_metadata.rb', line 12

def before
  @before
end