Class: GetMonitorsMonitorIDResponseMonitorSchedule
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMonitorsMonitorIDResponseMonitorSchedule
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
12690 12691 12692 12693 12694 12695 12696 12697 |
# File 'lib/schemas.rb', line 12690 def self.from_dynamic!(d) d = Types::Hash[d] new( cron: d["cron"], next_run: d["nextRun"], timezone: d["timezone"], ) end |
.from_json!(json) ⇒ Object
12699 12700 12701 |
# File 'lib/schemas.rb', line 12699 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
12703 12704 12705 12706 12707 12708 12709 |
# File 'lib/schemas.rb', line 12703 def to_dynamic { "cron" => cron, "nextRun" => next_run, "timezone" => timezone, } end |
#to_json(options = nil) ⇒ Object
12711 12712 12713 |
# File 'lib/schemas.rb', line 12711 def to_json( = nil) JSON.generate(to_dynamic, ) end |