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