Method: BaseCRM::SourcesService#where
- Defined in:
- lib/basecrm/services/sources_service.rb
#where(options = {}) ⇒ Array<Source>
Retrieve all sources
get ‘/sources’
Returns all deal sources available to the user according to the parameters provided
34 35 36 37 38 |
# File 'lib/basecrm/services/sources_service.rb', line 34 def where( = {}) _, _, root = @client.get("/sources", ) root[:items].map{ |item| Source.new(item[:data]) } end |