Class: PostMonitorsMonitorIDRunResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMonitorsMonitorIDRunResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
25445 25446 25447 25448 25449 25450 |
# File 'lib/schemas.rb', line 25445 def self.from_dynamic!(d) d = Types::Hash[d] new( run: d["run"] ? PostMonitorsMonitorIDRunResponseRun.from_dynamic!(d["run"]) : nil, ) end |
.from_json!(json) ⇒ Object
25452 25453 25454 |
# File 'lib/schemas.rb', line 25452 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
25456 25457 25458 25459 25460 |
# File 'lib/schemas.rb', line 25456 def to_dynamic { "run" => run&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
25462 25463 25464 |
# File 'lib/schemas.rb', line 25462 def to_json( = nil) JSON.generate(to_dynamic, ) end |