Class: BaseCRM::VisitsService
- Inherits:
-
Object
- Object
- BaseCRM::VisitsService
- Defined in:
- lib/basecrm/services/visits_service.rb
Instance Method Summary collapse
-
#all ⇒ Enumerable
Retrieve visits.
-
#initialize(client) ⇒ VisitsService
constructor
A new instance of VisitsService.
-
#where(options = {}) ⇒ Array<Visit>
Retrieve visits.
Constructor Details
#initialize(client) ⇒ VisitsService
Returns a new instance of VisitsService.
5 6 7 |
# File 'lib/basecrm/services/visits_service.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#all ⇒ Enumerable
Retrieve visits
get ‘/visits’
If you want to use filtering or sorting (see #where).
15 16 17 |
# File 'lib/basecrm/services/visits_service.rb', line 15 def all PaginatedResource.new(self) end |