Module: RatingChgkV2::Rest::Regions

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

Instance Method Summary collapse

Instance Method Details

#region(id) ⇒ Object



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

def region(id)
  model_load name: 'Region', ep_name: 'Regions', ep_params: id
end

#regions(params = {}) ⇒ Object



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

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