Class: SmartyStreets::USEnrichment::GeoReference::PlaceEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/place_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

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

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

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