Class: PostMonitorsResponseMonitor
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMonitorsResponseMonitor
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
25624 25625 25626 25627 25628 25629 25630 25631 |
# File 'lib/schemas.rb', line 25624 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], post_monitors_response_monitor_name: d["name"], uid: d["uid"], ) end |
.from_json!(json) ⇒ Object
25633 25634 25635 |
# File 'lib/schemas.rb', line 25633 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
25637 25638 25639 25640 25641 25642 25643 |
# File 'lib/schemas.rb', line 25637 def to_dynamic { "id" => id, "name" => post_monitors_response_monitor_name, "uid" => uid, } end |
#to_json(options = nil) ⇒ Object
25645 25646 25647 |
# File 'lib/schemas.rb', line 25645 def to_json( = nil) JSON.generate(to_dynamic, ) end |