Class: WorkOS::ListMetadata
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ListMetadata
- Defined in:
- lib/workos/agents/list_metadata.rb
Constant Summary collapse
- HASH_ATTRS =
{ after: :after, before: :before }.freeze
Instance Attribute Summary collapse
-
#after ⇒ Object
Returns the value of attribute after.
-
#before ⇒ Object
Returns the value of attribute before.
Instance Method Summary collapse
-
#initialize(json) ⇒ ListMetadata
constructor
A new instance of ListMetadata.
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 |