Class: Softlayer::Product::Item::Policy::Assignment

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

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Product_Item_Policy_Assignment'

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

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/softlayer/product/item/policy/assignment.rb', line 7

def id
  @id
end

#policy_nameObject

Returns the value of attribute policy_name.



9
10
11
# File 'lib/softlayer/product/item/policy/assignment.rb', line 9

def policy_name
  @policy_name
end

#productObject

Returns the value of attribute product.



10
11
12
# File 'lib/softlayer/product/item/policy/assignment.rb', line 10

def product
  @product
end

#product_idObject

Returns the value of attribute product_id.



8
9
10
# File 'lib/softlayer/product/item/policy/assignment.rb', line 8

def product_id
  @product_id
end

Instance Method Details

#accept_from_ticket(message) ⇒ Object

ticket_id



13
14
15
# File 'lib/softlayer/product/item/policy/assignment.rb', line 13

def accept_from_ticket(message)
  request(:accept_from_ticket, Boolean, message)
end

#get_objectObject



17
18
19
# File 'lib/softlayer/product/item/policy/assignment.rb', line 17

def get_object
  request(:get_object, Softlayer::Product::Item::Policy::Assignment)
end

#get_policy_document_contentsObject



21
22
23
# File 'lib/softlayer/product/item/policy/assignment.rb', line 21

def get_policy_document_contents
  request(:get_policy_document_contents, Softlayer::Base64Binary)
end

#get_policy_nameObject



25
26
27
# File 'lib/softlayer/product/item/policy/assignment.rb', line 25

def get_policy_name
  request(:get_policy_name, String)
end

#get_productObject



29
30
31
# File 'lib/softlayer/product/item/policy/assignment.rb', line 29

def get_product
  request(:get_product, Softlayer::Product::Item)
end