Class: PostScimV2UsersResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostScimV2UsersResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
26744 26745 26746 26747 26748 26749 26750 26751 |
# File 'lib/schemas.rb', line 26744 def self.from_dynamic!(d) d = Types::Hash[d] new( created: d["created"], last_modified: d["lastModified"], resource_type: d["resourceType"], ) end |
.from_json!(json) ⇒ Object
26753 26754 26755 |
# File 'lib/schemas.rb', line 26753 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
26757 26758 26759 26760 26761 26762 26763 |
# File 'lib/schemas.rb', line 26757 def to_dynamic { "created" => created, "lastModified" => last_modified, "resourceType" => resource_type, } end |
#to_json(options = nil) ⇒ Object
26765 26766 26767 |
# File 'lib/schemas.rb', line 26765 def to_json( = nil) JSON.generate(to_dynamic, ) end |