Class: SmartyStreets::InternationalStreet::Analysis

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/international_street/analysis.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Analysis

Returns a new instance of Analysis.



9
10
11
12
13
14
# File 'lib/smartystreets_ruby_sdk/international_street/analysis.rb', line 9

def initialize(obj)
  @verification_status = obj.fetch('verification_status', nil)
  @address_precision = obj.fetch('address_precision', nil)
  @max_address_precision = obj.fetch('max_address_precision', nil)
  @changes = Changes.new(obj.fetch('changes', {}))
end

Instance Attribute Details

#address_precisionObject (readonly)

Returns the value of attribute address_precision.



7
8
9
# File 'lib/smartystreets_ruby_sdk/international_street/analysis.rb', line 7

def address_precision
  @address_precision
end

#changesObject (readonly)

Returns the value of attribute changes.



7
8
9
# File 'lib/smartystreets_ruby_sdk/international_street/analysis.rb', line 7

def changes
  @changes
end

#max_address_precisionObject (readonly)

Returns the value of attribute max_address_precision.



7
8
9
# File 'lib/smartystreets_ruby_sdk/international_street/analysis.rb', line 7

def max_address_precision
  @max_address_precision
end

#verification_statusObject (readonly)

Returns the value of attribute verification_status.



7
8
9
# File 'lib/smartystreets_ruby_sdk/international_street/analysis.rb', line 7

def verification_status
  @verification_status
end