Class: Softlayer::Account::Note

Inherits:
Entity show all
Defined in:
lib/softlayer/account/note.rb,
lib/softlayer/account/note/type.rb,
lib/softlayer/account/note/history.rb

Defined Under Namespace

Classes: History, Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Account_Note'

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.



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

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#create_dateObject

Returns the value of attribute create_date.



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

def create_date
  @create_date
end

#customerObject

Returns the value of attribute customer.



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

def customer
  @customer
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#modify_dateObject

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#noteObject

Returns the value of attribute note.



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

def note
  @note
end

#note_historyObject

Returns the value of attribute note_history.



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

def note_history
  @note_history
end

#note_history_countObject

Returns the value of attribute note_history_count.



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

def note_history_count
  @note_history_count
end

#note_typeObject

Returns the value of attribute note_type.



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

def note_type
  @note_type
end

#note_type_idObject

Returns the value of attribute note_type_id.



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

def note_type_id
  @note_type_id
end

#user_idObject

Returns the value of attribute user_id.



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

def user_id
  @user_id
end

Class Method Details

.create_object(message) ⇒ Object

template_object



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

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

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



30
31
32
# File 'lib/softlayer/account/note.rb', line 30

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

#get_accountObject



34
35
36
# File 'lib/softlayer/account/note.rb', line 34

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

#get_customerObject



38
39
40
# File 'lib/softlayer/account/note.rb', line 38

def get_customer
  request(:get_customer, Softlayer::User::Customer)
end

#get_note_historyObject



42
43
44
# File 'lib/softlayer/account/note.rb', line 42

def get_note_history
  request(:get_note_history, Array[Softlayer::Account::Note::History])
end

#get_note_typeObject



46
47
48
# File 'lib/softlayer/account/note.rb', line 46

def get_note_type
  request(:get_note_type, Softlayer::Account::Note::Type)
end

#get_objectObject



50
51
52
# File 'lib/softlayer/account/note.rb', line 50

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