class Riksteatern::Venue::Location

Attributes

latitude[R]
longitude[R]
municipality[R]
region[R]

Public Class Methods

new(data) click to toggle source
# File lib/riksteatern/venue/location.rb, line 8
def initialize(data)
  pos = data.fetch('geoPosition', {}).fetch('geoPositionShipping', {})

  @region       = data['regionName']
  @municipality = data['municipalityName']
  @latitude     = pos['lat']
  @longitude    = pos['lon']
end