Class: Rager::Outcome

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/rager/outcome.rb

Instance Method Summary collapse

Instance Method Details

#to_json(options = nil) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/rager/outcome.rb', line 16

def to_json(options = nil)
  {
    context_id: context_id,
    value: value,
    feedback: feedback,
    tags: tags
  }.to_json(options)
end