Class: GetScimV2UsersUserIDResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetScimV2UsersUserIDResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
15707 15708 15709 15710 15711 15712 15713 15714 |
# File 'lib/schemas.rb', line 15707 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
15716 15717 15718 |
# File 'lib/schemas.rb', line 15716 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
15720 15721 15722 15723 15724 15725 15726 |
# File 'lib/schemas.rb', line 15720 def to_dynamic { "created" => created, "lastModified" => last_modified, "resourceType" => resource_type, } end |
#to_json(options = nil) ⇒ Object
15728 15729 15730 |
# File 'lib/schemas.rb', line 15728 def to_json( = nil) JSON.generate(to_dynamic, ) end |