Class: Rakumarket::ItemRankingClient::AgeRange

Inherits:
Object
  • Object
show all
Defined in:
lib/rakumarket/client.rb

Class Method Summary collapse

Class Method Details

.parse(range) ⇒ Object



166
# File 'lib/rakumarket/client.rb', line 166

def self.parse(range) self.values[range] end

.valuesObject



156
157
158
159
160
161
162
163
164
# File 'lib/rakumarket/client.rb', line 156

def self.values
  {
    (10..19) => "10", 
    (20..29) => "20", 
    (30..39) => "30", 
    (40..49) => "40", 
    (50..120) => "50"
  }
end