Class: PostScimV2UsersResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostScimV2UsersResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
26872 26873 26874 26875 26876 26877 26878 26879 26880 |
# File 'lib/schemas.rb', line 26872 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], schemas: d["schemas"], scim_type: d["scimType"], status: d["status"], ) end |
.from_json!(json) ⇒ Object
26882 26883 26884 |
# File 'lib/schemas.rb', line 26882 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
26886 26887 26888 26889 26890 26891 26892 26893 |
# File 'lib/schemas.rb', line 26886 def to_dynamic { "detail" => detail, "schemas" => schemas, "scimType" => scim_type, "status" => status, } end |
#to_json(options = nil) ⇒ Object
26895 26896 26897 |
# File 'lib/schemas.rb', line 26895 def to_json( = nil) JSON.generate(to_dynamic, ) end |