Class: PipeDrive::Stage
- Inherits:
-
OverallSourceBase
- Object
- OpenStruct
- Base
- ResourceBase
- OverallSourceBase
- PipeDrive::Stage
- Defined in:
- lib/pipe_drive/stage.rb
Constant Summary collapse
- ALLOW_FOR_SEARCH_TERMS =
i[name]
- ALLOW_FOR_ADDITION_SEARCH_OPTS =
i[pipeline_name pipeline_id]
Class Method Summary collapse
Methods inherited from OverallSourceBase
Methods inherited from ResourceBase
field_keys, find_by, list, pagination_list, resource_name, search
Methods inherited from Base
bulk_delete, create, delete, #delete, find_by_id, #initialize, #parameterize, parameterize, requester, #requester, search_and_setup_by, #update, update
Constructor Details
This class inherits a constructor from PipeDrive::Base
Class Method Details
.stage_ids_map ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/pipe_drive/stage.rb', line 8 def stage_ids_map stage_ids_map = Hash.new {|hash, key| hash[key] = {}} list.each do |stage| pipeline_name = parameterize(stage.pipeline_name, '_').to_sym stage_name = parameterize(stage.name, '_').to_sym stage_ids_map[pipeline_name][stage_name] = stage.id end stage_ids_map end |