Class: Address::LineAbbreviator::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/address/line_abbreviator.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original: nil, abbreviated: nil, changed: nil) ⇒ Result

Returns a new instance of Result.



26
# File 'app/services/address/line_abbreviator.rb', line 26

def initialize(original: nil, abbreviated: nil, changed: nil) = super

Instance Attribute Details

#abbreviatedObject (readonly)

Returns the value of attribute abbreviated

Returns:

  • (Object)

    the current value of abbreviated



24
25
26
# File 'app/services/address/line_abbreviator.rb', line 24

def abbreviated
  @abbreviated
end

#changedObject (readonly) Also known as: changed?

Returns the value of attribute changed

Returns:

  • (Object)

    the current value of changed



24
25
26
# File 'app/services/address/line_abbreviator.rb', line 24

def changed
  @changed
end

#originalObject (readonly)

Returns the value of attribute original

Returns:

  • (Object)

    the current value of original



24
25
26
# File 'app/services/address/line_abbreviator.rb', line 24

def original
  @original
end