Module: BombDefuser::ResourceList

Included in:
CompanyList, GameList, GenreList, PlatformList, ThemeList
Defined in:
lib/bomb_defuser/resource_list.rb

Instance Method Summary collapse

Instance Method Details

#fetch(page_number = 1, per_page = 100) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/bomb_defuser/resource_list.rb', line 4

def fetch(page_number = 1, per_page = 100)
  self.params = {:page_number => page_number, :per_page => per_page}
  include_additional_parameters

  request = Request.new(resource, params)
  request.get
end