Class: Softlayer::Account::Partner::Referral::Prospect
- Inherits:
-
User::Customer::Prospect
- Object
- Model
- User::Customer::Prospect
- Softlayer::Account::Partner::Referral::Prospect
- Defined in:
- lib/softlayer/account/partner/referral/prospect.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Account_Partner_Referral_Prospect'
Instance Attribute Summary collapse
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
Attributes inherited from User::Customer::Prospect
#account, #assigned_employee_count, #assigned_employees, #quote_count, #quotes, #type
Class Method Summary collapse
Instance Method Summary collapse
- #get_account ⇒ Object
- #get_assigned_employees ⇒ Object
- #get_object ⇒ Object
- #get_quotes ⇒ Object
- #get_type ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#company_name ⇒ Object
Returns the value of attribute company_name.
7 8 9 |
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 7 def company_name @company_name end |
#email_address ⇒ Object
Returns the value of attribute email_address.
8 9 10 |
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 8 def email_address @email_address end |
#first_name ⇒ Object
Returns the value of attribute first_name.
9 10 11 |
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 9 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 10 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
11 12 13 |
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 11 def last_name @last_name end |
Class Method Details
.create_prospect(template_object = nil, commit = nil) ⇒ Object
13 14 15 16 |
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 13 def self.create_prospect(template_object = nil, commit = nil) = {template_object: template_object, commit: commit} request(:create_prospect, Softlayer::Account::Partner::Referral::Prospect, ) end |
Instance Method Details
#get_account ⇒ Object
18 19 20 |
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 18 def get_account request(:get_account, Softlayer::Account) end |
#get_assigned_employees ⇒ Object
22 23 24 |
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 22 def get_assigned_employees request(:get_assigned_employees, Array[Softlayer::User::Employee]) end |
#get_object ⇒ Object
26 27 28 |
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 26 def get_object request(:get_object, Softlayer::Account::Partner::Referral::Prospect) end |