Class: Suma::ExpressReformatter::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/suma/express_reformatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#changed?Object

Returns the value of attribute changed?

Returns:

  • (Object)

    the current value of changed?



21
22
23
# File 'lib/suma/express_reformatter.rb', line 21

def changed?
  @changed?
end

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



21
22
23
# File 'lib/suma/express_reformatter.rb', line 21

def content
  @content
end

Instance Method Details

#content_or_nilObject



22
23
24
# File 'lib/suma/express_reformatter.rb', line 22

def content_or_nil
  changed? ? content : nil
end