Sha256: 75624adf065d55926f131f15e33ba63dda44ebd46ad974882ac0f4455030befc
Contents?: true
Size: 529 Bytes
Versions: 6
Compression:
Stored size: 529 Bytes
Contents
require 'delegate' module Barometer module WeatherService class Noaa class CurrentQuery < SimpleDelegator attr_reader :converted_query def self.accepted_formats [:noaa_station_id] end def initialize(query) super @converted_query = convert_query end def to_param converted_query.q end private def convert_query convert!(*self.class.accepted_formats) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems