Class: Softlayer::Account::Address

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

Defined Under Namespace

Classes: Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Account_Address'

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.



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

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#address1Object

Returns the value of attribute address1.



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

def address1
  @address1
end

#address2Object

Returns the value of attribute address2.



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

def address2
  @address2
end

#cityObject

Returns the value of attribute city.



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

def city
  @city
end

#contact_nameObject

Returns the value of attribute contact_name.



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

def contact_name
  @contact_name
end

#countryObject

Returns the value of attribute country.



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

def country
  @country
end

#create_userObject

Returns the value of attribute create_user.



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

def create_user
  @create_user
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#is_activeObject

Returns the value of attribute is_active.



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

def is_active
  @is_active
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#location_idObject

Returns the value of attribute location_id.



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

def location_id
  @location_id
end

#modify_employeeObject

Returns the value of attribute modify_employee.



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

def modify_employee
  @modify_employee
end

#modify_userObject

Returns the value of attribute modify_user.



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

def modify_user
  @modify_user
end

#postal_codeObject

Returns the value of attribute postal_code.



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

def postal_code
  @postal_code
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

.create_object(message) ⇒ Object

template_object



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

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

.get_all_data_centersObject



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

def self.get_all_data_centers
  request(:get_all_data_centers, Array[Softlayer::Account::Address])
end

.get_network_address(message) ⇒ Object

name



60
61
62
# File 'lib/softlayer/account/address.rb', line 60

def self.get_network_address(message)
  request(:get_network_address, Array[Softlayer::Account::Address], message)
end

Instance Method Details

#edit_object(message) ⇒ Object

template_object



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

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

#get_accountObject



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

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

#get_create_userObject



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

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

#get_locationObject



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

def get_location
  request(:get_location, Softlayer::Location)
end

#get_modify_employeeObject



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

def get_modify_employee
  request(:get_modify_employee, Softlayer::User::Employee)
end

#get_modify_userObject



55
56
57
# File 'lib/softlayer/account/address.rb', line 55

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

#get_objectObject



64
65
66
# File 'lib/softlayer/account/address.rb', line 64

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

#get_typeObject



68
69
70
# File 'lib/softlayer/account/address.rb', line 68

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