Class: AFCSalesforce::Lead
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#company ⇒ Object
Returns the value of attribute company.
-
#email ⇒ Object
Returns the value of attribute email.
-
#endorser ⇒ Object
Returns the value of attribute endorser.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#internet_source ⇒ Object
Returns the value of attribute internet_source.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#page_url ⇒ Object
Returns the value of attribute page_url.
-
#page_variant ⇒ Object
Returns the value of attribute page_variant.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#search_adgroup ⇒ Object
Returns the value of attribute search_adgroup.
-
#search_campaign ⇒ Object
Returns the value of attribute search_campaign.
-
#search_keyword ⇒ Object
Returns the value of attribute search_keyword.
-
#search_source ⇒ Object
Returns the value of attribute search_source.
-
#source ⇒ Object
Returns the value of attribute source.
-
#state ⇒ Object
Returns the value of attribute state.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unbounce_page_id ⇒ Object
Returns the value of attribute unbounce_page_id.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
Methods inherited from Base
Methods included from Models::Concerns::TypeSetter
Constructor Details
This class inherits a constructor from AFCSalesforce::Base
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def city @city end |
#company ⇒ Object
Returns the value of attribute company.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def company @company end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def email @email end |
#endorser ⇒ Object
Returns the value of attribute endorser.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def endorser @endorser end |
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def first_name @first_name end |
#internet_source ⇒ Object
Returns the value of attribute internet_source.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def internet_source @internet_source end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def last_name @last_name end |
#page_url ⇒ Object
Returns the value of attribute page_url.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def page_url @page_url end |
#page_variant ⇒ Object
Returns the value of attribute page_variant.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def page_variant @page_variant end |
#phone ⇒ Object
Returns the value of attribute phone.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def phone @phone end |
#search_adgroup ⇒ Object
Returns the value of attribute search_adgroup.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def search_adgroup @search_adgroup end |
#search_campaign ⇒ Object
Returns the value of attribute search_campaign.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def search_campaign @search_campaign end |
#search_keyword ⇒ Object
Returns the value of attribute search_keyword.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def search_keyword @search_keyword end |
#search_source ⇒ Object
Returns the value of attribute search_source.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def search_source @search_source end |
#source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def source @source end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def state @state end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def type @type end |
#unbounce_page_id ⇒ Object
Returns the value of attribute unbounce_page_id.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def unbounce_page_id @unbounce_page_id end |
#zip ⇒ Object
Returns the value of attribute zip.
3 4 5 |
# File 'lib/afc_salesforce/lead.rb', line 3 def zip @zip end |
Instance Method Details
#to_h ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/afc_salesforce/lead.rb', line 7 def to_h AFCSalesforce::Models::Lead.new( firstname: @first_name, lastname: @last_name, phone: @phone, email: @email, company: @company, endorser__c: @endorser, source__c: @source, type__c: @type, internetsource__c: @internet_source, searchsource__c: @search_source, searchcampaign__c: @search_campaign, searchadgroup__c: @search_adgroup, searchkeyword__c: @search_keyword, city: @city, state: @state, postalcode: @zip, unbounce_page_id__c: @unbounce_page_id, page_url__c: @page_url, page_variant__c: @page_variant ).to_h end |