Class: PostEnvironmentsResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostEnvironmentsResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
23224 23225 23226 23227 23228 23229 23230 23231 |
# File 'lib/schemas.rb', line 23224 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"], message: d["message"], post_environments_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
23233 23234 23235 |
# File 'lib/schemas.rb', line 23233 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
23237 23238 23239 23240 23241 23242 23243 |
# File 'lib/schemas.rb', line 23237 def to_dynamic { "details" => details, "message" => , "name" => post_environments_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
23245 23246 23247 |
# File 'lib/schemas.rb', line 23245 def to_json( = nil) JSON.generate(to_dynamic, ) end |