Class: PostNetworkPrivateResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostNetworkPrivateResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
26145 26146 26147 26148 26149 26150 26151 |
# File 'lib/schemas.rb', line 26145 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_network_private_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
26153 26154 26155 |
# File 'lib/schemas.rb', line 26153 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
26157 26158 26159 26160 26161 26162 |
# File 'lib/schemas.rb', line 26157 def to_dynamic { "message" => , "name" => post_network_private_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
26164 26165 26166 |
# File 'lib/schemas.rb', line 26164 def to_json( = nil) JSON.generate(to_dynamic, ) end |