Class: SmartyStreets::USStreet::ComponentAnalysis

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/us_street/component_analysis.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_designatorObject (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_numberObject (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_codeObject (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_numberObject (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_designatorObject (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_numberObject (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_abbreviationObject (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_nameObject (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_postdirectionObject (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_predirectionObject (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_suffixObject (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

#urbanizationObject (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

#zipcodeObject (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