Class: SmartyStreets::InternationalStreet::Metadata
- Inherits:
-
Object
- Object
- SmartyStreets::InternationalStreet::Metadata
- Defined in:
- lib/smartystreets_ruby_sdk/international_street/metadata.rb
Overview
Instance Attribute Summary collapse
-
#address_format ⇒ Object
readonly
Returns the value of attribute address_format.
-
#geocode_precision ⇒ Object
readonly
Returns the value of attribute geocode_precision.
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
-
#max_geocode_precision ⇒ Object
readonly
Returns the value of attribute max_geocode_precision.
Instance Method Summary collapse
-
#initialize(obj) ⇒ Metadata
constructor
A new instance of Metadata.
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_format ⇒ Object (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_precision ⇒ Object (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 |
#latitude ⇒ Object (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 |
#longitude ⇒ Object (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_precision ⇒ Object (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 |