Class: Softlayer::Product::Item::Price::Premium

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/product/item/price/premium.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Product_Item_Price_Premium'

Instance Attribute 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

#hourly_modifierObject

Returns the value of attribute hourly_modifier.



7
8
9
# File 'lib/softlayer/product/item/price/premium.rb', line 7

def hourly_modifier
  @hourly_modifier
end

#item_priceObject

Returns the value of attribute item_price.



12
13
14
# File 'lib/softlayer/product/item/price/premium.rb', line 12

def item_price
  @item_price
end

#item_price_idObject

Returns the value of attribute item_price_id.



8
9
10
# File 'lib/softlayer/product/item/price/premium.rb', line 8

def item_price_id
  @item_price_id
end

#locationObject

Returns the value of attribute location.



13
14
15
# File 'lib/softlayer/product/item/price/premium.rb', line 13

def location
  @location
end

#location_idObject

Returns the value of attribute location_id.



9
10
11
# File 'lib/softlayer/product/item/price/premium.rb', line 9

def location_id
  @location_id
end

#monthly_modifierObject

Returns the value of attribute monthly_modifier.



10
11
12
# File 'lib/softlayer/product/item/price/premium.rb', line 10

def monthly_modifier
  @monthly_modifier
end

#packageObject

Returns the value of attribute package.



14
15
16
# File 'lib/softlayer/product/item/price/premium.rb', line 14

def package
  @package
end

#package_idObject

Returns the value of attribute package_id.



11
12
13
# File 'lib/softlayer/product/item/price/premium.rb', line 11

def package_id
  @package_id
end

Instance Method Details

#get_item_priceObject



16
17
18
# File 'lib/softlayer/product/item/price/premium.rb', line 16

def get_item_price
  request(:get_item_price, Softlayer::Product::Item::Price)
end

#get_locationObject



20
21
22
# File 'lib/softlayer/product/item/price/premium.rb', line 20

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

#get_objectObject



24
25
26
# File 'lib/softlayer/product/item/price/premium.rb', line 24

def get_object
  request(:get_object, Softlayer::Product::Item::Price::Premium)
end

#get_packageObject



28
29
30
# File 'lib/softlayer/product/item/price/premium.rb', line 28

def get_package
  request(:get_package, Softlayer::Product::Package)
end