Fix class methods on BizDev module
and add missing tests
This commit is contained in:
parent
38ee42d446
commit
695f5b2705
2 changed files with 43 additions and 3 deletions
|
@ -24,13 +24,13 @@ module BizDev
|
|||
|
||||
BIZ_DEV_IDS = BIZ_DEV_MAPPING.keys
|
||||
|
||||
def full_name(administration_id)
|
||||
def self.full_name(administration_id)
|
||||
id = ensure_proper_administration_id(administration_id)
|
||||
|
||||
BIZ_DEV_MAPPING[id][:full_name]
|
||||
end
|
||||
|
||||
def pipedrive_id(administration_id)
|
||||
def self.pipedrive_id(administration_id)
|
||||
id = ensure_proper_administration_id(administration_id)
|
||||
|
||||
BIZ_DEV_MAPPING[id][:pipedrive_id]
|
||||
|
@ -38,7 +38,7 @@ module BizDev
|
|||
|
||||
private
|
||||
|
||||
def ensure_proper_administration_id(administration_id)
|
||||
def self.ensure_proper_administration_id(administration_id)
|
||||
if administration_id.in?(BIZ_DEV_IDS)
|
||||
administration_id
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue