Class: BikeReg::EventResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/bike_reg/resources/event_resource.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from BikeReg::Resource

Instance Method Details

#search(**params) ⇒ Object



5
6
7
8
# File 'lib/bike_reg/resources/event_resource.rb', line 5

def search(**params)
  response = get_request('search', params: params)
  Collection.from_response(response, key: 'MatchingEvents', type: Event, start_page: params[:startpage])
end