module Markety::Command::GetLead
GetLead
commands return Response::GetLeadResponse
objects
Public Instance Methods
get_lead_by_idnum(idnum)
click to toggle source
IDs are unique per lead, so the response can only contain one lead.
# File lib/markety/command/get_lead.rb, line 8 def get_lead_by_idnum(idnum) get_lead(LeadKey.new(LeadKeyType::IDNUM, idnum)) end
get_leads_by_email(email)
click to toggle source
Multiple leads can share an email address, so this may result in more than one lead in the response.
# File lib/markety/command/get_lead.rb, line 14 def get_leads_by_email(email) get_lead(LeadKey.new(LeadKeyType::EMAIL, email)) end
Private Instance Methods
get_lead(lead_key)
click to toggle source
# File lib/markety/command/get_lead.rb, line 24 def get_lead(lead_key) send_request(:get_lead, {"leadKey" => lead_key.to_hash}) end