Class: Softlayer::Account::Agreement

Inherits:
Entity show all
Defined in:
lib/softlayer/account/agreement.rb,
lib/softlayer/account/agreement/type.rb,
lib/softlayer/account/agreement/status.rb

Defined Under Namespace

Classes: Representer, Status, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Account_Agreement'

Instance Attribute 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.



20
21
22
# File 'lib/softlayer/account/agreement.rb', line 20

def 
  @account
end

#agreement_typeObject

Returns the value of attribute agreement_type.



21
22
23
# File 'lib/softlayer/account/agreement.rb', line 21

def agreement_type
  @agreement_type
end

#agreement_type_idObject

Returns the value of attribute agreement_type_id.



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

def agreement_type_id
  @agreement_type_id
end

#attached_billing_agreement_file_countObject

Returns the value of attribute attached_billing_agreement_file_count.



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

def attached_billing_agreement_file_count
  @attached_billing_agreement_file_count
end

#attached_billing_agreement_filesObject

Returns the value of attribute attached_billing_agreement_files.



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

def attached_billing_agreement_files
  @attached_billing_agreement_files
end

#auto_renewObject

Returns the value of attribute auto_renew.



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

def auto_renew
  @auto_renew
end

#billing_item_countObject

Returns the value of attribute billing_item_count.



18
19
20
# File 'lib/softlayer/account/agreement.rb', line 18

def billing_item_count
  @billing_item_count
end

#billing_itemsObject

Returns the value of attribute billing_items.



23
24
25
# File 'lib/softlayer/account/agreement.rb', line 23

def billing_items
  @billing_items
end

#cancellation_feeObject

Returns the value of attribute cancellation_fee.



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

def cancellation_fee
  @cancellation_fee
end

#create_dateObject

Returns the value of attribute create_date.



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

def create_date
  @create_date
end

#duration_monthsObject

Returns the value of attribute duration_months.



11
12
13
# File 'lib/softlayer/account/agreement.rb', line 11

def duration_months
  @duration_months
end

#end_dateObject

Returns the value of attribute end_date.



12
13
14
# File 'lib/softlayer/account/agreement.rb', line 12

def end_date
  @end_date
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#start_dateObject

Returns the value of attribute start_date.



14
15
16
# File 'lib/softlayer/account/agreement.rb', line 14

def start_date
  @start_date
end

#statusObject

Returns the value of attribute status.



24
25
26
# File 'lib/softlayer/account/agreement.rb', line 24

def status
  @status
end

#status_idObject

Returns the value of attribute status_id.



15
16
17
# File 'lib/softlayer/account/agreement.rb', line 15

def status_id
  @status_id
end

#titleObject

Returns the value of attribute title.



16
17
18
# File 'lib/softlayer/account/agreement.rb', line 16

def title
  @title
end

#top_level_billing_item_countObject

Returns the value of attribute top_level_billing_item_count.



19
20
21
# File 'lib/softlayer/account/agreement.rb', line 19

def top_level_billing_item_count
  @top_level_billing_item_count
end

#top_level_billing_itemsObject

Returns the value of attribute top_level_billing_items.



25
26
27
# File 'lib/softlayer/account/agreement.rb', line 25

def top_level_billing_items
  @top_level_billing_items
end

Instance Method Details

#get_accountObject



27
28
29
# File 'lib/softlayer/account/agreement.rb', line 27

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

#get_agreement_typeObject



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

def get_agreement_type
  request(:get_agreement_type, Softlayer::Account::Agreement::Type)
end

#get_attached_billing_agreement_filesObject



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

def get_attached_billing_agreement_files
  request(:get_attached_billing_agreement_files, Array[Softlayer::Account::MasterServiceAgreement])
end

#get_billing_itemsObject



39
40
41
# File 'lib/softlayer/account/agreement.rb', line 39

def get_billing_items
  request(:get_billing_items, Array[Softlayer::Billing::Item])
end

#get_objectObject



43
44
45
# File 'lib/softlayer/account/agreement.rb', line 43

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

#get_statusObject



47
48
49
# File 'lib/softlayer/account/agreement.rb', line 47

def get_status
  request(:get_status, Softlayer::Account::Agreement::Status)
end

#get_top_level_billing_itemsObject



51
52
53
# File 'lib/softlayer/account/agreement.rb', line 51

def get_top_level_billing_items
  request(:get_top_level_billing_items, Array[Softlayer::Billing::Item])
end