Class: SmartyStreets::InternationalStreet::Components

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Components

Returns a new instance of Components.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 17

def initialize(obj)
  @country_iso_3 = obj.fetch('country_iso_3', nil)
  @super_administrative_area = obj.fetch('super_administrative_area', nil)
  @administrative_area = obj.fetch('administrative_area', nil)
  @administrative_area_short = obj.fetch('administrative_area_short', nil)
  @administrative_area_long = obj.fetch('administrative_area_long', nil)
  @sub_administrative_area = obj.fetch('sub_administrative_area', nil)
  @dependent_locality= obj.fetch('dependent_locality', nil)
  @dependent_locality_name = obj.fetch('dependent_locality_name', nil)
  @double_dependent_locality = obj.fetch('double_dependent_locality', nil)
  @locality = obj.fetch('locality', nil)
  @postal_code = obj.fetch('postal_code', nil)
  @postal_code_short = obj.fetch('postal_code_short', nil)
  @postal_code_extra = obj.fetch('postal_code_extra', nil)
  @premise = obj.fetch('premise', nil)
  @premise_extra = obj.fetch('premise_extra', nil)
  @premise_number = obj.fetch('premise_number', nil)
  @premise_prefix_number = obj.fetch('premise_prefix_number', nil)
  @premise_type = obj.fetch('premise_type', nil)
  @thoroughfare = obj.fetch('thoroughfare', nil)
  @thoroughfare_predirection = obj.fetch('thoroughfare_predirection', nil)
  @thoroughfare_postdirection = obj.fetch('thoroughfare_postdirection', nil)
  @thoroughfare_name = obj.fetch('thoroughfare_name', nil)
  @thoroughfare_trailing_type = obj.fetch('thoroughfare_trailing_type', nil)
  @thoroughfare_type = obj.fetch('thoroughfare_type', nil)
  @dependent_thoroughfare = obj.fetch('dependent_thoroughfare', nil)
  @dependent_thoroughfare_predirection = obj.fetch('dependent_thoroughfare_predirection', nil)
  @dependent_thoroughfare_postdirection = obj.fetch('dependent_thoroughfare_postdirection', nil)
  @dependent_thoroughfare_name = obj.fetch('dependent_thoroughfare_name', nil)
  @dependent_thoroughfare_trailing_type = obj.fetch('dependent_thoroughfare_trailing_type', nil)
  @dependent_thoroughfare_type = obj.fetch('dependent_thoroughfare_type', nil)
  @building = obj.fetch('building', nil)
  @building_leading_type = obj.fetch('building_leading_type', nil)
  @building_name = obj.fetch('building_name', nil)
  @building_trailing_type = obj.fetch('building_trailing_type', nil)
  @sub_building_type = obj.fetch('sub_building_type', nil)
  @sub_building_number = obj.fetch('sub_building_number', nil)
  @sub_building_name = obj.fetch('sub_building_name', nil)
  @sub_building = obj.fetch('sub_building', nil)
  @level_type = obj.fetch('level_type', nil)
  @level_number = obj.fetch('level_number', nil)
  @post_box = obj.fetch('post_box', nil)
  @post_box_type = obj.fetch('post_box_type', nil)
  @post_box_number = obj.fetch('post_box_number', nil)
end

Instance Attribute Details

#administrative_areaObject (readonly)

Returns the value of attribute administrative_area.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def administrative_area
  @administrative_area
end

#administrative_area_longObject (readonly)

Returns the value of attribute administrative_area_long.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def administrative_area_long
  @administrative_area_long
end

#administrative_area_shortObject (readonly)

Returns the value of attribute administrative_area_short.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def administrative_area_short
  @administrative_area_short
end

#buildingObject (readonly)

Returns the value of attribute building.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def building
  @building
end

#building_leading_typeObject (readonly)

Returns the value of attribute building_leading_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def building_leading_type
  @building_leading_type
end

#building_nameObject (readonly)

Returns the value of attribute building_name.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def building_name
  @building_name
end

#building_trailing_typeObject (readonly)

Returns the value of attribute building_trailing_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def building_trailing_type
  @building_trailing_type
end

#country_iso_3Object (readonly)

Returns the value of attribute country_iso_3.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def country_iso_3
  @country_iso_3
end

#dependent_localityObject (readonly)

Returns the value of attribute dependent_locality.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def dependent_locality
  @dependent_locality
end

#dependent_locality_nameObject (readonly)

Returns the value of attribute dependent_locality_name.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def dependent_locality_name
  @dependent_locality_name
end

#dependent_thoroughfareObject (readonly)

Returns the value of attribute dependent_thoroughfare.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def dependent_thoroughfare
  @dependent_thoroughfare
end

#dependent_thoroughfare_nameObject (readonly)

Returns the value of attribute dependent_thoroughfare_name.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def dependent_thoroughfare_name
  @dependent_thoroughfare_name
end

#dependent_thoroughfare_postdirectionObject (readonly)

Returns the value of attribute dependent_thoroughfare_postdirection.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def dependent_thoroughfare_postdirection
  @dependent_thoroughfare_postdirection
end

#dependent_thoroughfare_predirectionObject (readonly)

Returns the value of attribute dependent_thoroughfare_predirection.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def dependent_thoroughfare_predirection
  @dependent_thoroughfare_predirection
end

#dependent_thoroughfare_trailing_typeObject (readonly)

Returns the value of attribute dependent_thoroughfare_trailing_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def dependent_thoroughfare_trailing_type
  @dependent_thoroughfare_trailing_type
end

#dependent_thoroughfare_typeObject (readonly)

Returns the value of attribute dependent_thoroughfare_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def dependent_thoroughfare_type
  @dependent_thoroughfare_type
end

#double_dependent_localityObject (readonly)

Returns the value of attribute double_dependent_locality.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def double_dependent_locality
  @double_dependent_locality
end

#level_numberObject (readonly)

Returns the value of attribute level_number.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def level_number
  @level_number
end

#level_typeObject (readonly)

Returns the value of attribute level_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def level_type
  @level_type
end

#localityObject (readonly)

Returns the value of attribute locality.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def locality
  @locality
end

#post_boxObject (readonly)

Returns the value of attribute post_box.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def post_box
  @post_box
end

#post_box_numberObject (readonly)

Returns the value of attribute post_box_number.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def post_box_number
  @post_box_number
end

#post_box_typeObject (readonly)

Returns the value of attribute post_box_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def post_box_type
  @post_box_type
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def postal_code
  @postal_code
end

#postal_code_extraObject (readonly)

Returns the value of attribute postal_code_extra.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def postal_code_extra
  @postal_code_extra
end

#postal_code_shortObject (readonly)

Returns the value of attribute postal_code_short.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def postal_code_short
  @postal_code_short
end

#premiseObject (readonly)

Returns the value of attribute premise.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def premise
  @premise
end

#premise_extraObject (readonly)

Returns the value of attribute premise_extra.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def premise_extra
  @premise_extra
end

#premise_numberObject (readonly)

Returns the value of attribute premise_number.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def premise_number
  @premise_number
end

#premise_prefix_numberObject (readonly)

Returns the value of attribute premise_prefix_number.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def premise_prefix_number
  @premise_prefix_number
end

#premise_typeObject (readonly)

Returns the value of attribute premise_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def premise_type
  @premise_type
end

#sub_administrative_areaObject (readonly)

Returns the value of attribute sub_administrative_area.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def sub_administrative_area
  @sub_administrative_area
end

#sub_buildingObject (readonly)

Returns the value of attribute sub_building.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def sub_building
  @sub_building
end

#sub_building_nameObject (readonly)

Returns the value of attribute sub_building_name.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def sub_building_name
  @sub_building_name
end

#sub_building_numberObject (readonly)

Returns the value of attribute sub_building_number.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def sub_building_number
  @sub_building_number
end

#sub_building_typeObject (readonly)

Returns the value of attribute sub_building_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def sub_building_type
  @sub_building_type
end

#super_administrative_areaObject (readonly)

Returns the value of attribute super_administrative_area.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def super_administrative_area
  @super_administrative_area
end

#thoroughfareObject (readonly)

Returns the value of attribute thoroughfare.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def thoroughfare
  @thoroughfare
end

#thoroughfare_nameObject (readonly)

Returns the value of attribute thoroughfare_name.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def thoroughfare_name
  @thoroughfare_name
end

#thoroughfare_postdirectionObject (readonly)

Returns the value of attribute thoroughfare_postdirection.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def thoroughfare_postdirection
  @thoroughfare_postdirection
end

#thoroughfare_predirectionObject (readonly)

Returns the value of attribute thoroughfare_predirection.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def thoroughfare_predirection
  @thoroughfare_predirection
end

#thoroughfare_trailing_typeObject (readonly)

Returns the value of attribute thoroughfare_trailing_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def thoroughfare_trailing_type
  @thoroughfare_trailing_type
end

#thoroughfare_typeObject (readonly)

Returns the value of attribute thoroughfare_type.



5
6
7
# File 'lib/smartystreets_ruby_sdk/international_street/components.rb', line 5

def thoroughfare_type
  @thoroughfare_type
end