Class: DeleteNetworkPrivateElementTypeElementIDResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteNetworkPrivateElementTypeElementIDResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
3715 3716 3717 3718 3719 3720 3721 |
# File 'lib/schemas.rb', line 3715 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
3723 3724 3725 |
# File 'lib/schemas.rb', line 3723 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
3727 3728 3729 3730 3731 3732 |
# File 'lib/schemas.rb', line 3727 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
3734 3735 3736 |
# File 'lib/schemas.rb', line 3734 def to_json( = nil) JSON.generate(to_dynamic, ) end |