Method: OpenC3::ReactionModel#as_json
- Defined in:
- lib/openc3/models/reaction_model.rb
#as_json(*a) ⇒ Hash
Returns generated from the ReactionModel.
255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/openc3/models/reaction_model.rb', line 255 def as_json(*a) return { 'name' => @name, 'scope' => @scope, 'enabled' => @enabled, 'triggerLevel' => @triggerLevel, 'snooze' => @snooze, 'snoozed_until' => @snoozed_until, 'triggers' => @triggers, 'actions' => @actions, 'username' => @username, 'updated_at' => @updated_at } end |