Class: Softlayer::FlexibleCredit::Program

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/flexible_credit/program.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_FlexibleCredit_Program'

Instance Attribute Summary collapse

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, #service_name, #to_hash

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/softlayer/flexible_credit/program.rb', line 5

def id
  @id
end

#key_nameObject

Returns the value of attribute key_name.



6
7
8
# File 'lib/softlayer/flexible_credit/program.rb', line 6

def key_name
  @key_name
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/softlayer/flexible_credit/program.rb', line 7

def name
  @name
end

Class Method Details

.get_company_typesObject



14
15
16
# File 'lib/softlayer/flexible_credit/program.rb', line 14

def self.get_company_types
  request(:get_company_types, Array[Softlayer::FlexibleCredit::Company::Type])
end

Instance Method Details

#get_affiliates_available_for_self_enrollment_by_verification_type(verification_type_key_name = nil) ⇒ Object



9
10
11
12
# File 'lib/softlayer/flexible_credit/program.rb', line 9

def get_affiliates_available_for_self_enrollment_by_verification_type(verification_type_key_name = nil)
  message = {verification_type_key_name: verification_type_key_name}
  request(:get_affiliates_available_for_self_enrollment_by_verification_type, Array[Softlayer::FlexibleCredit::Affiliate], message)
end

#get_objectObject



18
19
20
# File 'lib/softlayer/flexible_credit/program.rb', line 18

def get_object
  request(:get_object, Softlayer::FlexibleCredit::Program)
end

#self_enroll_new_account(account_template = nil) ⇒ Object



22
23
24
25
# File 'lib/softlayer/flexible_credit/program.rb', line 22

def ( = nil)
  message = {account_template: }
  request(:self_enroll_new_account, Softlayer::Account, message)
end