Class: PostMocksMockIDPublishResponse500Error
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- PostMocksMockIDPublishResponse500Error
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 24111 24112 24113 24114 24115 24116 24117 | # File 'lib/schemas.rb', line 24111 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_mocks_mock_id_publish_response500_error_name: d["name"], ) end | 
.from_json!(json) ⇒ Object
| 24119 24120 24121 | # File 'lib/schemas.rb', line 24119 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 24123 24124 24125 24126 24127 24128 | # File 'lib/schemas.rb', line 24123 def to_dynamic { "message" => , "name" => post_mocks_mock_id_publish_response500_error_name, } end | 
#to_json(options = nil) ⇒ Object
| 24130 24131 24132 | # File 'lib/schemas.rb', line 24130 def to_json( = nil) JSON.generate(to_dynamic, ) end |