class LibTAD::Places::Place

Information about a place.

Attributes

geo[R]

@return [Geo] Geographical information about the location.

id[R]

@return [String] Numerical ID of the referenced place.

urlid[R]

@return [String] Textual ID of the referenced place.

Public Class Methods

new(hash) click to toggle source
# File lib/types/places/place.rb, line 17
def initialize(hash)
  @id = hash.fetch('id', nil)
  @urlid = hash.fetch('urlid', nil)
  @geo = Geo.new hash['geo'] unless !hash.key?('geo')
end