Class: Softlayer::Product::Package::Server::Option

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

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Product_Package_Server_Option'

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

#catalog_idObject

Returns the value of attribute catalog_id.



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

def catalog_id
  @catalog_id
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

#valueObject

Returns the value of attribute value.



11
12
13
# File 'lib/softlayer/product/package/server/option.rb', line 11

def value
  @value
end

Class Method Details

.get_all_optionsObject



13
14
15
# File 'lib/softlayer/product/package/server/option.rb', line 13

def self.get_all_options
  request(:get_all_options, Array[Softlayer::Product::Package::Server::Option])
end

.get_options(message) ⇒ Object

type



22
23
24
# File 'lib/softlayer/product/package/server/option.rb', line 22

def self.get_options(message)
  request(:get_options, Array[Softlayer::Product::Package::Server::Option], message)
end

Instance Method Details

#get_objectObject



17
18
19
# File 'lib/softlayer/product/package/server/option.rb', line 17

def get_object
  request(:get_object, Softlayer::Product::Package::Server::Option)
end