Class: PostMocksMockIDPublishResponseMock
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMocksMockIDPublishResponseMock
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
23848 23849 23850 23851 23852 23853 |
# File 'lib/schemas.rb', line 23848 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], ) end |
.from_json!(json) ⇒ Object
23855 23856 23857 |
# File 'lib/schemas.rb', line 23855 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
23859 23860 23861 23862 23863 |
# File 'lib/schemas.rb', line 23859 def to_dynamic { "id" => id, } end |
#to_json(options = nil) ⇒ Object
23865 23866 23867 |
# File 'lib/schemas.rb', line 23865 def to_json( = nil) JSON.generate(to_dynamic, ) end |