Class: Softlayer::Brand::Restriction::Location::CustomerCountry

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/brand/restriction/location/customer_country.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Brand_Restriction_Location_CustomerCountry'

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

#brandObject

Returns the value of attribute brand.



10
11
12
# File 'lib/softlayer/brand/restriction/location/customer_country.rb', line 10

def brand
  @brand
end

#brand_idObject

Returns the value of attribute brand_id.



7
8
9
# File 'lib/softlayer/brand/restriction/location/customer_country.rb', line 7

def brand_id
  @brand_id
end

#customer_country_codeObject

Returns the value of attribute customer_country_code.



8
9
10
# File 'lib/softlayer/brand/restriction/location/customer_country.rb', line 8

def customer_country_code
  @customer_country_code
end

#locationObject

Returns the value of attribute location.



11
12
13
# File 'lib/softlayer/brand/restriction/location/customer_country.rb', line 11

def location
  @location
end

#location_idObject

Returns the value of attribute location_id.



9
10
11
# File 'lib/softlayer/brand/restriction/location/customer_country.rb', line 9

def location_id
  @location_id
end

Class Method Details

.get_all_objectsObject



13
14
15
# File 'lib/softlayer/brand/restriction/location/customer_country.rb', line 13

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Brand::Restriction::Location::CustomerCountry])
end

Instance Method Details

#get_brandObject



17
18
19
# File 'lib/softlayer/brand/restriction/location/customer_country.rb', line 17

def get_brand
  request(:get_brand, Softlayer::Brand)
end

#get_locationObject



21
22
23
# File 'lib/softlayer/brand/restriction/location/customer_country.rb', line 21

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

#get_objectObject



25
26
27
# File 'lib/softlayer/brand/restriction/location/customer_country.rb', line 25

def get_object
  request(:get_object, Softlayer::Brand::Restriction::Location::CustomerCountry)
end