Class: Softlayer::Product::Package::Type

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/product/package/type.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Product_Package_Type'

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

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/softlayer/product/package/type.rb', line 6

def id
  @id
end

#key_nameObject

Returns the value of attribute key_name.



7
8
9
# File 'lib/softlayer/product/package/type.rb', line 7

def key_name
  @key_name
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/softlayer/product/package/type.rb', line 8

def name
  @name
end

#package_countObject

Returns the value of attribute package_count.



9
10
11
# File 'lib/softlayer/product/package/type.rb', line 9

def package_count
  @package_count
end

#packagesObject

Returns the value of attribute packages.



10
11
12
# File 'lib/softlayer/product/package/type.rb', line 10

def packages
  @packages
end

Class Method Details

.get_all_objectsObject



12
13
14
# File 'lib/softlayer/product/package/type.rb', line 12

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Product::Package::Type])
end

Instance Method Details

#get_objectObject



16
17
18
# File 'lib/softlayer/product/package/type.rb', line 16

def get_object
  request(:get_object, Softlayer::Product::Package::Type)
end

#get_packagesObject



20
21
22
# File 'lib/softlayer/product/package/type.rb', line 20

def get_packages
  request(:get_packages, Array[Softlayer::Product::Package])
end