Class: SmartyStreets::USEnrichment::GeoReference::PlaceEntry
- Inherits:
-
Object
- Object
- SmartyStreets::USEnrichment::GeoReference::PlaceEntry
- Defined in:
- lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/place_entry.rb
Instance Attribute Summary collapse
-
#accuracy ⇒ Object
readonly
Returns the value of attribute accuracy.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(obj) ⇒ PlaceEntry
constructor
A new instance of PlaceEntry.
Constructor Details
#initialize(obj) ⇒ PlaceEntry
Returns a new instance of PlaceEntry.
7 8 9 10 11 12 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/place_entry.rb', line 7 def initialize(obj) @accuracy = obj['accuracy'] @code = obj['code'] @name = obj['name'] @type = obj['type'] end |
Instance Attribute Details
#accuracy ⇒ Object (readonly)
Returns the value of attribute accuracy.
5 6 7 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/place_entry.rb', line 5 def accuracy @accuracy end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/place_entry.rb', line 5 def code @code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/place_entry.rb', line 5 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/place_entry.rb', line 5 def type @type end |