class PipeDrive::Stage

Constants

ALLOW_FOR_ADDITION_SEARCH_OPTS
ALLOW_FOR_SEARCH_TERMS

Public Class Methods

stage_ids_map() click to toggle source
# 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