Class: SmartyStreets::InternationalStreet::Metadata

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Metadata

Returns a new instance of Metadata.



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

def initialize(obj)
  @latitude = obj.fetch('latitude', nil)
  @longitude = obj.fetch('longitude', nil)
  @geocode_precision = obj.fetch('geocode_precision', nil)
  @max_geocode_precision = obj.fetch('max_geocode_precision', nil)
  @address_format = obj.fetch('address_format', nil)
end

Instance Attribute Details

#address_formatObject (readonly)

Returns the value of attribute address_format.



6
7
8
# File 'lib/smartystreets_ruby_sdk/international_street/metadata.rb', line 6

def address_format
  @address_format
end

#geocode_precisionObject (readonly)

Returns the value of attribute geocode_precision.



6
7
8
# File 'lib/smartystreets_ruby_sdk/international_street/metadata.rb', line 6

def geocode_precision
  @geocode_precision
end

#latitudeObject (readonly)

Returns the value of attribute latitude.



6
7
8
# File 'lib/smartystreets_ruby_sdk/international_street/metadata.rb', line 6

def latitude
  @latitude
end

#longitudeObject (readonly)

Returns the value of attribute longitude.



6
7
8
# File 'lib/smartystreets_ruby_sdk/international_street/metadata.rb', line 6

def longitude
  @longitude
end

#max_geocode_precisionObject (readonly)

Returns the value of attribute max_geocode_precision.



6
7
8
# File 'lib/smartystreets_ruby_sdk/international_street/metadata.rb', line 6

def max_geocode_precision
  @max_geocode_precision
end