Class: Softlayer::Account::Partner::Referral::Prospect

Inherits:
User::Customer::Prospect show all
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

Attributes inherited from User::Customer::Prospect

#account, #assigned_employee_count, #assigned_employees, #quote_count, #quotes, #type

Class Method Summary collapse

Instance Method Summary collapse

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_nameObject

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_addressObject

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_nameObject

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

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 10

def id
  @id
end

#last_nameObject

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)
  message = {template_object: template_object, commit: commit}
  request(:create_prospect, Softlayer::Account::Partner::Referral::Prospect, message)
end

.get_survey_questionsObject



34
35
36
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 34

def self.get_survey_questions
  request(:get_survey_questions, Array[Softlayer::Survey::Question])
end

Instance Method Details

#get_accountObject



18
19
20
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 18

def 
  request(:get_account, Softlayer::Account)
end

#get_assigned_employeesObject



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_objectObject



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

#get_quotesObject



30
31
32
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 30

def get_quotes
  request(:get_quotes, Array[Softlayer::Billing::Order::Quote])
end

#get_typeObject



38
39
40
# File 'lib/softlayer/account/partner/referral/prospect.rb', line 38

def get_type
  request(:get_type, Softlayer::User::Customer::Prospect::Type)
end