class Rspec::Usecases::Contents::Outcome
Content Outcome
Attributes
note[RW]
Note, similar to summary on usecase, but due to metadata inheritance, I needed to use a different property name
Public Class Methods
new(type, example)
click to toggle source
Calls superclass method
Rspec::Usecases::Contents::BaseContent::new
# File lib/rspec/usecases/contents/outcome.rb, line 13 def initialize(type, example) super(type, example) @note = example.metadata[:note].to_s end
Public Instance Methods
to_h()
click to toggle source
Calls superclass method
Rspec::Usecases::Contents::BaseContent#to_h
# File lib/rspec/usecases/contents/outcome.rb, line 19 def to_h { note: note }.merge(super.to_h) end