Class: PatchScimV2UsersUserIDResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PatchScimV2UsersUserIDResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
18918 18919 18920 18921 18922 18923 18924 18925 |
# File 'lib/schemas.rb', line 18918 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
18927 18928 18929 |
# File 'lib/schemas.rb', line 18927 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
18931 18932 18933 18934 18935 18936 18937 |
# File 'lib/schemas.rb', line 18931 def to_dynamic { "created" => created, "lastModified" => last_modified, "resourceType" => resource_type, } end |
#to_json(options = nil) ⇒ Object
18939 18940 18941 |
# File 'lib/schemas.rb', line 18939 def to_json( = nil) JSON.generate(to_dynamic, ) end |