lib/locklizard/customer_commands.rb
# list_customer customer id and email parameters with full docs

list_customer customer id and email parameters with full docs
list_customer customer id and email parameters with full docs
def list_customer_full(custid = nil, email = nil)
      raise ArgumentError.new('Customer Id and email are nil.') if custid.nil? &&  email.nil?
      suburl = "&action=list_customer" 
      if !custid.nil? && email.nil?
        suburl << "&custid=" + custid.to_s
      elsif custid.nil? && !email.nil? 
        suburl << "&email=" + email
      elsif !custid.nil? && !email.nil?
        suburl << "&custid=" + custid.to_s + "&email=" + email
      end
      call_target_url(suburl) 
    end
def list_customer_full ( custid = nil , email = nil ) raise ArgumentError . new ( 'Customer Id and email are nil.' ) if custid . nil? && email . nil? suburl = "&action=list_customer" if ! custid . nil? && email . nil? suburl << "&custid=" + custid . to_s elsif custid . nil? && ! email . nil? suburl << "&email=" + email elsif ! custid . nil? && ! email . nil? suburl << "&custid=" + custid . to_s + "&email=" + email end call_target_url ( suburl ) end
list_customer customer id and email parameters with full docs
list_customer customer id and email parameters with full docs
# call private method

custid
email