Class: PostEnvironmentsResponse403Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostEnvironmentsResponse403Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
23340 23341 23342 23343 23344 23345 23346 |
# File 'lib/schemas.rb', line 23340 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_environments_response403_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
23348 23349 23350 |
# File 'lib/schemas.rb', line 23348 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
23352 23353 23354 23355 23356 23357 |
# File 'lib/schemas.rb', line 23352 def to_dynamic { "message" => , "name" => post_environments_response403_error_name, } end |
#to_json(options = nil) ⇒ Object
23359 23360 23361 |
# File 'lib/schemas.rb', line 23359 def to_json( = nil) JSON.generate(to_dynamic, ) end |