Class: Address::LineAbbreviator::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Result.



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

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



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

def abbreviated
  @abbreviated
end

#changedObject (readonly) Also known as: changed?

Returns the value of attribute changed

Returns:

  • (Object)

    the current value of changed



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

def changed
  @changed
end

#originalObject (readonly)

Returns the value of attribute original

Returns:

  • (Object)

    the current value of original



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

def original
  @original
end