Class: PatchScimV2UsersUserIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PatchScimV2UsersUserIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
19223 19224 19225 19226 19227 19228 19229 19230 |
# File 'lib/schemas.rb', line 19223 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], schemas: d["schemas"], status: d["status"], ) end |
.from_json!(json) ⇒ Object
19232 19233 19234 |
# File 'lib/schemas.rb', line 19232 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
19236 19237 19238 19239 19240 19241 19242 |
# File 'lib/schemas.rb', line 19236 def to_dynamic { "detail" => detail, "schemas" => schemas, "status" => status, } end |
#to_json(options = nil) ⇒ Object
19244 19245 19246 |
# File 'lib/schemas.rb', line 19244 def to_json( = nil) JSON.generate(to_dynamic, ) end |