Class: PostScimV2UsersResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostScimV2UsersResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
26911 26912 26913 26914 26915 26916 26917 26918 |
# File 'lib/schemas.rb', line 26911 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], schemas: d["schemas"], status: d["status"], ) end |
.from_json!(json) ⇒ Object
26920 26921 26922 |
# File 'lib/schemas.rb', line 26920 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
26924 26925 26926 26927 26928 26929 26930 |
# File 'lib/schemas.rb', line 26924 def to_dynamic { "detail" => detail, "schemas" => schemas, "status" => status, } end |
#to_json(options = nil) ⇒ Object
26932 26933 26934 |
# File 'lib/schemas.rb', line 26932 def to_json( = nil) JSON.generate(to_dynamic, ) end |