Class: PostMonitorsMonitorIDRunResponseRunExecutionsItemItem

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/schemas.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



25089
25090
25091
25092
25093
25094
# File 'lib/schemas.rb', line 25089

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    post_monitors_monitor_id_run_response_run_executions_item_item_name: d["name"],
  )
end

.from_json!(json) ⇒ Object



25096
25097
25098
# File 'lib/schemas.rb', line 25096

def self.from_json!(json)
  from_dynamic!(JSON.parse(json))
end

Instance Method Details

#to_dynamicObject



25100
25101
25102
25103
25104
# File 'lib/schemas.rb', line 25100

def to_dynamic
  {
    "name" => post_monitors_monitor_id_run_response_run_executions_item_item_name,
  }
end

#to_json(options = nil) ⇒ Object



25106
25107
25108
# File 'lib/schemas.rb', line 25106

def to_json(options = nil)
  JSON.generate(to_dynamic, options)
end