Class: Softlayer::Account::Affiliation

Inherits:
Entity show all
Defined in:
lib/softlayer/account/affiliation.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Account_Affiliation'

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

Methods included from Model::Operations

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

Instance Attribute Details

#accountObject

Returns the value of attribute account.



10
11
12
# File 'lib/softlayer/account/affiliation.rb', line 10

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



5
6
7
# File 'lib/softlayer/account/affiliation.rb', line 5

def 
  @account_id
end

#affiliate_idObject

Returns the value of attribute affiliate_id.



6
7
8
# File 'lib/softlayer/account/affiliation.rb', line 6

def affiliate_id
  @affiliate_id
end

#create_dateObject

Returns the value of attribute create_date.



7
8
9
# File 'lib/softlayer/account/affiliation.rb', line 7

def create_date
  @create_date
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/account/affiliation.rb', line 8

def id
  @id
end

#modify_dateObject

Returns the value of attribute modify_date.



9
10
11
# File 'lib/softlayer/account/affiliation.rb', line 9

def modify_date
  @modify_date
end

Class Method Details

.create_object(message) ⇒ Object

template_object



13
14
15
# File 'lib/softlayer/account/affiliation.rb', line 13

def self.create_object(message)
  request(:create_object, Softlayer::Account::Affiliation, message)
end

.get_account_affiliations_by_affiliate_id(message) ⇒ Object

affiliate_id



31
32
33
# File 'lib/softlayer/account/affiliation.rb', line 31

def self.(message)
  request(:get_account_affiliations_by_affiliate_id, Array[Softlayer::Account::Affiliation], message)
end

Instance Method Details

#delete_objectObject



17
18
19
# File 'lib/softlayer/account/affiliation.rb', line 17

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



22
23
24
# File 'lib/softlayer/account/affiliation.rb', line 22

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_accountObject



26
27
28
# File 'lib/softlayer/account/affiliation.rb', line 26

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

#get_objectObject



35
36
37
# File 'lib/softlayer/account/affiliation.rb', line 35

def get_object
  request(:get_object, Softlayer::Account::Affiliation)
end