Class: Salesforceclient::Lead
- Inherits:
-
Object
- Object
- Salesforceclient::Lead
- Defined in:
- lib/salesforceclient/lead.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#job_title ⇒ Object
readonly
Returns the value of attribute job_title.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#website ⇒ Object
readonly
Returns the value of attribute website.
Instance Method Summary collapse
-
#initialize(name, last_name, email, company, job_title, phone, website) ⇒ Lead
constructor
A new instance of Lead.
- #print ⇒ Object
Constructor Details
#initialize(name, last_name, email, company, job_title, phone, website) ⇒ Lead
Returns a new instance of Lead.
11 12 13 14 15 16 17 18 19 |
# File 'lib/salesforceclient/lead.rb', line 11 def initialize(name, last_name, email, company, job_title, phone, website) @name = name @last_name = last_name @email = email @company = company @job_title = job_title @phone = phone @website = website end |
Instance Attribute Details
#company ⇒ Object (readonly)
Returns the value of attribute company.
6 7 8 |
# File 'lib/salesforceclient/lead.rb', line 6 def company @company end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
5 6 7 |
# File 'lib/salesforceclient/lead.rb', line 5 def email @email end |
#job_title ⇒ Object (readonly)
Returns the value of attribute job_title.
7 8 9 |
# File 'lib/salesforceclient/lead.rb', line 7 def job_title @job_title end |
#last_name ⇒ Object (readonly)
Returns the value of attribute last_name.
4 5 6 |
# File 'lib/salesforceclient/lead.rb', line 4 def last_name @last_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/salesforceclient/lead.rb', line 3 def name @name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
8 9 10 |
# File 'lib/salesforceclient/lead.rb', line 8 def phone @phone end |
#website ⇒ Object (readonly)
Returns the value of attribute website.
9 10 11 |
# File 'lib/salesforceclient/lead.rb', line 9 def website @website end |
Instance Method Details
#print ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/salesforceclient/lead.rb', line 21 def print puts @name puts @last_name puts @email puts @company puts @job_title puts @phone puts @website end |