Class: SmartyStreets::USStreet::ComponentAnalysis
- Inherits:
-
Object
- Object
- SmartyStreets::USStreet::ComponentAnalysis
- Defined in:
- lib/smartystreets_ruby_sdk/us_street/component_analysis.rb
Instance Attribute Summary collapse
-
#city_name ⇒ Object
readonly
Returns the value of attribute city_name.
-
#extra_secondary_designator ⇒ Object
readonly
Returns the value of attribute extra_secondary_designator.
-
#extra_secondary_number ⇒ Object
readonly
Returns the value of attribute extra_secondary_number.
-
#plus4_code ⇒ Object
readonly
Returns the value of attribute plus4_code.
-
#primary_number ⇒ Object
readonly
Returns the value of attribute primary_number.
-
#secondary_designator ⇒ Object
readonly
Returns the value of attribute secondary_designator.
-
#secondary_number ⇒ Object
readonly
Returns the value of attribute secondary_number.
-
#state_abbreviation ⇒ Object
readonly
Returns the value of attribute state_abbreviation.
-
#street_name ⇒ Object
readonly
Returns the value of attribute street_name.
-
#street_postdirection ⇒ Object
readonly
Returns the value of attribute street_postdirection.
-
#street_predirection ⇒ Object
readonly
Returns the value of attribute street_predirection.
-
#street_suffix ⇒ Object
readonly
Returns the value of attribute street_suffix.
-
#urbanization ⇒ Object
readonly
Returns the value of attribute urbanization.
-
#zipcode ⇒ Object
readonly
Returns the value of attribute zipcode.
Instance Method Summary collapse
-
#initialize(obj = {}) ⇒ ComponentAnalysis
constructor
A new instance of ComponentAnalysis.
Constructor Details
#initialize(obj = {}) ⇒ ComponentAnalysis
Returns a new instance of ComponentAnalysis.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 18 def initialize(obj = {}) @primary_number = MatchInfo.new(obj.fetch('primary_number', {})) @street_predirection = MatchInfo.new(obj.fetch('street_predirection', {})) @street_name = MatchInfo.new(obj.fetch('street_name', {})) @street_postdirection = MatchInfo.new(obj.fetch('street_postdirection', {})) @street_suffix = MatchInfo.new(obj.fetch('street_suffix', {})) @secondary_number = MatchInfo.new(obj.fetch('secondary_number', {})) @secondary_designator = MatchInfo.new(obj.fetch('secondary_designator', {})) @extra_secondary_number = MatchInfo.new(obj.fetch('extra_secondary_number', {})) @extra_secondary_designator = MatchInfo.new(obj.fetch('extra_secondary_designator', {})) @city_name = MatchInfo.new(obj.fetch('city_name', {})) @state_abbreviation = MatchInfo.new(obj.fetch('state_abbreviation', {})) @zipcode = MatchInfo.new(obj.fetch('zipcode', {})) @plus4_code = MatchInfo.new(obj.fetch('plus4_code', {})) @urbanization = MatchInfo.new(obj.fetch('urbanization', {})) end |
Instance Attribute Details
#city_name ⇒ Object (readonly)
Returns the value of attribute city_name.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def city_name @city_name end |
#extra_secondary_designator ⇒ Object (readonly)
Returns the value of attribute extra_secondary_designator.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def extra_secondary_designator @extra_secondary_designator end |
#extra_secondary_number ⇒ Object (readonly)
Returns the value of attribute extra_secondary_number.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def extra_secondary_number @extra_secondary_number end |
#plus4_code ⇒ Object (readonly)
Returns the value of attribute plus4_code.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def plus4_code @plus4_code end |
#primary_number ⇒ Object (readonly)
Returns the value of attribute primary_number.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def primary_number @primary_number end |
#secondary_designator ⇒ Object (readonly)
Returns the value of attribute secondary_designator.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def secondary_designator @secondary_designator end |
#secondary_number ⇒ Object (readonly)
Returns the value of attribute secondary_number.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def secondary_number @secondary_number end |
#state_abbreviation ⇒ Object (readonly)
Returns the value of attribute state_abbreviation.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def state_abbreviation @state_abbreviation end |
#street_name ⇒ Object (readonly)
Returns the value of attribute street_name.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def street_name @street_name end |
#street_postdirection ⇒ Object (readonly)
Returns the value of attribute street_postdirection.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def street_postdirection @street_postdirection end |
#street_predirection ⇒ Object (readonly)
Returns the value of attribute street_predirection.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def street_predirection @street_predirection end |
#street_suffix ⇒ Object (readonly)
Returns the value of attribute street_suffix.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def street_suffix @street_suffix end |
#urbanization ⇒ Object (readonly)
Returns the value of attribute urbanization.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def urbanization @urbanization end |
#zipcode ⇒ Object (readonly)
Returns the value of attribute zipcode.
13 14 15 |
# File 'lib/smartystreets_ruby_sdk/us_street/component_analysis.rb', line 13 def zipcode @zipcode end |