Class: PostScimV2GroupsResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostScimV2GroupsResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
26298 26299 26300 26301 26302 26303 26304 26305 |
# File 'lib/schemas.rb', line 26298 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
26307 26308 26309 |
# File 'lib/schemas.rb', line 26307 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
26311 26312 26313 26314 26315 26316 26317 |
# File 'lib/schemas.rb', line 26311 def to_dynamic { "created" => created, "lastModified" => last_modified, "resourceType" => resource_type, } end |
#to_json(options = nil) ⇒ Object
26319 26320 26321 |
# File 'lib/schemas.rb', line 26319 def to_json( = nil) JSON.generate(to_dynamic, ) end |