Class: Softlayer::Layout::Item

Inherits:
Entity show all
Defined in:
lib/softlayer/layout/item.rb,
lib/softlayer/layout/item/type.rb

Defined Under Namespace

Classes: Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Layout_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

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/softlayer/layout/item.rb', line 6

def id
  @id
end

#keynameObject

Returns the value of attribute keyname.



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

def keyname
  @keyname
end

#layout_item_preference_countObject

Returns the value of attribute layout_item_preference_count.



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

def layout_item_preference_count
  @layout_item_preference_count
end

#layout_item_preferencesObject

Returns the value of attribute layout_item_preferences.



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

def layout_item_preferences
  @layout_item_preferences
end

#layout_item_typeObject

Returns the value of attribute layout_item_type.



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

def layout_item_type
  @layout_item_type
end

#layout_item_type_idObject

Returns the value of attribute layout_item_type_id.



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

def layout_item_type_id
  @layout_item_type_id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#get_layout_item_preferencesObject



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

def get_layout_item_preferences
  request(:get_layout_item_preferences, Array[Softlayer::Layout::Preference])
end

#get_layout_item_typeObject



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

def get_layout_item_type
  request(:get_layout_item_type, Softlayer::Layout::Item::Type)
end

#get_objectObject



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

def get_object
  request(:get_object, Softlayer::Layout::Item)
end