module PipeDrive
Constants
- API_VERSION
- DEFAULT_PER_PAGE
- FIELD_CLASSES
- RESOURCE_CLASSES
- STRICT
Attributes
api_token[RW]
field_keys[W]
field_names[W]
pipeline_ids[W]
stage_ids[W]
Public Class Methods
field_infos()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 22 def field_infos return @field_infos unless @field_infos.nil? || @field_infos.empty? @field_infos = obtain_field_infos end
field_keys()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 31 def field_keys @fields_keys = field_infos[:key_map] end
field_names()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 35 def field_names @field_names = field_infos[:name_map] end
hash_except(hash, except_keys)
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 63 def hash_except(hash, except_keys) all_keys = hash.keys remain_keys = all_keys - except_keys hash.slice(*remain_keys) end
host()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 55 def host "https://api.pipedrive.com" end
pipeline_ids()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 47 def pipeline_ids @pipeline_ids ||= Pipeline.pipeline_ids_map end
requester()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 59 def requester SendRequest.new end
reset_field_infos!()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 27 def reset_field_infos! @field_infos = obtain_field_infos end
reset_pipeline_ids!()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 51 def reset_pipeline_ids! @pipeline_ids = Pipeline.pipeline_ids_map end
reset_stage_ids!()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 43 def reset_stage_ids! @stage_ids = Stage.stage_ids_map end
setup() { |self| ... }
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 17 def setup yield self self end
stage_ids()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 39 def stage_ids @stage_ids ||= Stage.stage_ids_map end
Private Class Methods
obtain_field_infos()
click to toggle source
# File lib/pipe_drive_ruby_wrapper.rb, line 71 def obtain_field_infos field_infos = {key_map: {}, name_map: {}} FIELD_CLASSES.each do |class_name| infos = const_get(class_name).field_infos_map field_infos[:key_map].merge!(infos[:key_map]) field_infos[:name_map].merge!(infos[:name_map]) end field_infos end