Method: OpenC3::ReactionModel#as_json
- Defined in:
- lib/openc3/models/reaction_model.rb
#as_json(*a) ⇒ Hash
Returns generated from the ReactionModel.
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/openc3/models/reaction_model.rb', line 264 def as_json(*a) return { 'name' => @name, 'scope' => @scope, 'active' => @active, 'review' => @review, 'description' => @description, 'snooze' => @snooze, 'snoozed_until' => @snoozed_until, 'triggers' => @triggers, 'actions' => @actions, 'username' => @username, 'updated_at' => @updated_at } end |