Class: Softlayer::Account::Contact

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

Defined Under Namespace

Classes: Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Account_Contact'

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.



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

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#address1Object

Returns the value of attribute address1.



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

def address1
  @address1
end

#address2Object

Returns the value of attribute address2.



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

def address2
  @address2
end

#alternate_phoneObject

Returns the value of attribute alternate_phone.



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

def alternate_phone
  @alternate_phone
end

#cityObject

Returns the value of attribute city.



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

def city
  @city
end

#company_nameObject

Returns the value of attribute company_name.



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

def company_name
  @company_name
end

#countryObject

Returns the value of attribute country.



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

def country
  @country
end

#create_dateObject

Returns the value of attribute create_date.



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

def create_date
  @create_date
end

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#fax_phoneObject

Returns the value of attribute fax_phone.



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

def fax_phone
  @fax_phone
end

#first_nameObject

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#job_titleObject

Returns the value of attribute job_title.



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

def job_title
  @job_title
end

#last_nameObject

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#modify_dateObject

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#office_phoneObject

Returns the value of attribute office_phone.



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

def office_phone
  @office_phone
end

#postal_codeObject

Returns the value of attribute postal_code.



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

def postal_code
  @postal_code
end

#profile_nameObject

Returns the value of attribute profile_name.



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

def profile_name
  @profile_name
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#typeObject

Returns the value of attribute type.



28
29
30
# File 'lib/softlayer/account/contact.rb', line 28

def type
  @type
end

#type_idObject

Returns the value of attribute type_id.



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

def type_id
  @type_id
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end

Class Method Details

.create_object(message) ⇒ Object

template_object



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

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

.get_all_contact_typesObject



48
49
50
# File 'lib/softlayer/account/contact.rb', line 48

def self.get_all_contact_types
  request(:get_all_contact_types, Array[Softlayer::Account::Contact::Type])
end

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



40
41
42
# File 'lib/softlayer/account/contact.rb', line 40

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

#get_accountObject



44
45
46
# File 'lib/softlayer/account/contact.rb', line 44

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

#get_objectObject



52
53
54
# File 'lib/softlayer/account/contact.rb', line 52

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

#get_typeObject



56
57
58
# File 'lib/softlayer/account/contact.rb', line 56

def get_type
  request(:get_type, Softlayer::Account::Contact::Type)
end