Class: PostMonitorsResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMonitorsResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
25739 25740 25741 25742 25743 25744 25745 |
# File 'lib/schemas.rb', line 25739 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_monitors_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
25747 25748 25749 |
# File 'lib/schemas.rb', line 25747 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
25751 25752 25753 25754 25755 25756 |
# File 'lib/schemas.rb', line 25751 def to_dynamic { "message" => , "name" => post_monitors_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
25758 25759 25760 |
# File 'lib/schemas.rb', line 25758 def to_json( = nil) JSON.generate(to_dynamic, ) end |