Module: RatingChgkV2::Rest::Towns

Included in:
RatingChgkV2::Rest
Defined in:
lib/rating_chgk_v2/rest/towns.rb

Instance Method Summary collapse

Instance Method Details

#town(id) ⇒ Object



10
11
12
# File 'lib/rating_chgk_v2/rest/towns.rb', line 10

def town(id)
  model_load name: 'Town', ep_name: 'Towns', ep_params: id
end

#towns(params = {}) ⇒ Object



6
7
8
# File 'lib/rating_chgk_v2/rest/towns.rb', line 6

def towns(params = {})
  collection_load name: 'Towns', ep_params: [[], params]
end