module Zwemwater::Response

Public Class Methods

for(query) click to toggle source
# File lib/zwemwater/response.rb, line 13
def self.for(query)
   @@statuses['features'].select { |f| f['properties']['naam'] == query }.first || {}
end
locations() click to toggle source
# File lib/zwemwater/response.rb, line 8
def self.locations
  return @@locations unless @@locations.nil?
  @@locations = @@statuses['features'].collect { |f| f['properties']['naam'] }
end
statuses() click to toggle source
# File lib/zwemwater/response.rb, line 4
def self.statuses; @@statuses; end
statuses=(value) click to toggle source
# File lib/zwemwater/response.rb, line 5
def self.statuses=(value); @@statuses = value; end