Class: PutMocksMockIDServerResponsesServerResponseIDResponse400ErrorDetails
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutMocksMockIDServerResponsesServerResponseIDResponse400ErrorDetails
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
32970 32971 32972 32973 32974 32975 |
# File 'lib/schemas.rb', line 32970 def self.from_dynamic!(d) d = Types::Hash[d] new( param: d["param"], ) end |
.from_json!(json) ⇒ Object
32977 32978 32979 |
# File 'lib/schemas.rb', line 32977 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
32981 32982 32983 32984 32985 |
# File 'lib/schemas.rb', line 32981 def to_dynamic { "param" => param, } end |
#to_json(options = nil) ⇒ Object
32987 32988 32989 |
# File 'lib/schemas.rb', line 32987 def to_json( = nil) JSON.generate(to_dynamic, ) end |