Class: Softlayer::Location::Group::Pricing

Inherits:
Softlayer::Location::Group show all
Defined in:
lib/softlayer/location/group/pricing.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Location_Group_Pricing'

Instance Attribute Summary collapse

Attributes inherited from Softlayer::Location::Group

#description, #id, #location_count, #location_group_type, #location_group_type_id, #locations, #name, #security_level_id

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

#price_countObject

Returns the value of attribute price_count.



6
7
8
# File 'lib/softlayer/location/group/pricing.rb', line 6

def price_count
  @price_count
end

#pricesObject

Returns the value of attribute prices.



7
8
9
# File 'lib/softlayer/location/group/pricing.rb', line 7

def prices
  @prices
end

Class Method Details

.get_all_objectsObject



9
10
11
# File 'lib/softlayer/location/group/pricing.rb', line 9

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Location::Group])
end

Instance Method Details

#get_location_group_typeObject



13
14
15
# File 'lib/softlayer/location/group/pricing.rb', line 13

def get_location_group_type
  request(:get_location_group_type, Softlayer::Location::Group::Type)
end

#get_locationsObject



17
18
19
# File 'lib/softlayer/location/group/pricing.rb', line 17

def get_locations
  request(:get_locations, Array[Softlayer::Location])
end

#get_objectObject



21
22
23
# File 'lib/softlayer/location/group/pricing.rb', line 21

def get_object
  request(:get_object, Softlayer::Location::Group::Pricing)
end

#get_pricesObject



25
26
27
# File 'lib/softlayer/location/group/pricing.rb', line 25

def get_prices
  request(:get_prices, Array[Softlayer::Product::Item::Price])
end