Class: PutMonitorsMonitorIDBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutMonitorsMonitorIDBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
33322 33323 33324 33325 33326 33327 |
# File 'lib/schemas.rb', line 33322 def self.from_dynamic!(d) d = Types::Hash[d] new( monitor: d["monitor"] ? PutMonitorsMonitorIDBodyMonitor.from_dynamic!(d["monitor"]) : nil, ) end |
.from_json!(json) ⇒ Object
33329 33330 33331 |
# File 'lib/schemas.rb', line 33329 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
33333 33334 33335 33336 33337 |
# File 'lib/schemas.rb', line 33333 def to_dynamic { "monitor" => monitor&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
33339 33340 33341 |
# File 'lib/schemas.rb', line 33339 def to_json( = nil) JSON.generate(to_dynamic, ) end |