Class: PostMonitorsResponse403Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMonitorsResponse403Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
25796 25797 25798 25799 25800 25801 25802 |
# File 'lib/schemas.rb', line 25796 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_monitors_response403_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
25804 25805 25806 |
# File 'lib/schemas.rb', line 25804 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
25808 25809 25810 25811 25812 25813 |
# File 'lib/schemas.rb', line 25808 def to_dynamic { "message" => , "name" => post_monitors_response403_error_name, } end |
#to_json(options = nil) ⇒ Object
25815 25816 25817 |
# File 'lib/schemas.rb', line 25815 def to_json( = nil) JSON.generate(to_dynamic, ) end |