Class: GetMeResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMeResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
10456 10457 10458 10459 10460 10461 10462 |
# File 'lib/schemas.rb', line 10456 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_me_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
10464 10465 10466 |
# File 'lib/schemas.rb', line 10464 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
10468 10469 10470 10471 10472 10473 |
# File 'lib/schemas.rb', line 10468 def to_dynamic { "message" => , "name" => get_me_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
10475 10476 10477 |
# File 'lib/schemas.rb', line 10475 def to_json( = nil) JSON.generate(to_dynamic, ) end |