Class: PutScimV2UsersUserIDResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutScimV2UsersUserIDResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
34424 34425 34426 34427 34428 34429 34430 34431 |
# File 'lib/schemas.rb', line 34424 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
34433 34434 34435 |
# File 'lib/schemas.rb', line 34433 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
34437 34438 34439 34440 34441 34442 34443 |
# File 'lib/schemas.rb', line 34437 def to_dynamic { "created" => created, "lastModified" => last_modified, "resourceType" => resource_type, } end |
#to_json(options = nil) ⇒ Object
34445 34446 34447 |
# File 'lib/schemas.rb', line 34445 def to_json( = nil) JSON.generate(to_dynamic, ) end |