Class: SmartyStreets::InternationalStreet::Analysis
- Inherits:
-
Object
- Object
- SmartyStreets::InternationalStreet::Analysis
- Defined in:
- lib/smartystreets_ruby_sdk/international_street/analysis.rb
Overview
Instance Attribute Summary collapse
-
#address_precision ⇒ Object
readonly
Returns the value of attribute address_precision.
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#max_address_precision ⇒ Object
readonly
Returns the value of attribute max_address_precision.
-
#verification_status ⇒ Object
readonly
Returns the value of attribute verification_status.
Instance Method Summary collapse
-
#initialize(obj) ⇒ Analysis
constructor
A new instance of Analysis.
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_precision ⇒ Object (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 |
#changes ⇒ Object (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_precision ⇒ Object (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_status ⇒ Object (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 |