class OpenWeatherAPI::Resources::Handlers::BoundingBox

Private Instance Methods

bottomright() click to toggle source
# File lib/open-weather-api/resources/handlers/current.rb, line 24
def bottomright
  [ value[:bottomright][:lat], value[:bottomright][:lon] ].join(',')
end
build() click to toggle source
# File lib/open-weather-api/resources/handlers/current.rb, line 36
def build
  fill bbox: [topleft, bottomright, zoom].join(',')
end
topleft() click to toggle source
# File lib/open-weather-api/resources/handlers/current.rb, line 20
def topleft
  [ value[:topleft][:lat], value[:topleft][:lon] ].join(',')
end
value() click to toggle source
# File lib/open-weather-api/resources/handlers/current.rb, line 32
def value
  @parameters[:box] || @parameters[:box] || @parameters[:rect] || @parameters[:rectangle]
end
zoom() click to toggle source
# File lib/open-weather-api/resources/handlers/current.rb, line 28
def zoom
  value[:zoom] || value[:map_zoom] || 10
end