Class: Softlayer::Account::Shipment::Item

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/account/shipment/item.rb,
lib/softlayer/account/shipment/item/type.rb

Defined Under Namespace

Classes: Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Account_Shipment_Item'

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

#create_dateObject

Returns the value of attribute create_date.



7
8
9
# File 'lib/softlayer/account/shipment/item.rb', line 7

def create_date
  @create_date
end

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/softlayer/account/shipment/item.rb', line 8

def description
  @description
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/softlayer/account/shipment/item.rb', line 9

def id
  @id
end

#package_idObject

Returns the value of attribute package_id.



10
11
12
# File 'lib/softlayer/account/shipment/item.rb', line 10

def package_id
  @package_id
end

#shipmentObject

Returns the value of attribute shipment.



14
15
16
# File 'lib/softlayer/account/shipment/item.rb', line 14

def shipment
  @shipment
end

#shipment_idObject

Returns the value of attribute shipment_id.



11
12
13
# File 'lib/softlayer/account/shipment/item.rb', line 11

def shipment_id
  @shipment_id
end

#shipment_item_idObject

Returns the value of attribute shipment_item_id.



12
13
14
# File 'lib/softlayer/account/shipment/item.rb', line 12

def shipment_item_id
  @shipment_item_id
end

#shipment_item_typeObject

Returns the value of attribute shipment_item_type.



15
16
17
# File 'lib/softlayer/account/shipment/item.rb', line 15

def shipment_item_type
  @shipment_item_type
end

#shipment_item_type_idObject

Returns the value of attribute shipment_item_type_id.



13
14
15
# File 'lib/softlayer/account/shipment/item.rb', line 13

def shipment_item_type_id
  @shipment_item_type_id
end

Instance Method Details

#edit_object(message) ⇒ Object

template_object



18
19
20
# File 'lib/softlayer/account/shipment/item.rb', line 18

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

#get_objectObject



22
23
24
# File 'lib/softlayer/account/shipment/item.rb', line 22

def get_object
  request(:get_object, Softlayer::Account::Shipment::Item)
end

#get_shipmentObject



26
27
28
# File 'lib/softlayer/account/shipment/item.rb', line 26

def get_shipment
  request(:get_shipment, Softlayer::Account::Shipment)
end

#get_shipment_item_typeObject



30
31
32
# File 'lib/softlayer/account/shipment/item.rb', line 30

def get_shipment_item_type
  request(:get_shipment_item_type, Softlayer::Account::Shipment::Item::Type)
end