Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/softlayer/object_mask_helpers.rb

Overview

Ruby Array Class

Instance Method Summary collapse

Instance Method Details

#to_sl_object_mask_propertyObject

Returns a string representing the object mask content represented by the Array. Each value in the array is converted to its object mask eqivalent



72
73
74
75
76
# File 'lib/softlayer/object_mask_helpers.rb', line 72

def to_sl_object_mask_property()
  return "" if self.empty?
  property_content = map { |item| item.to_sl_object_mask_property() }.flatten.join(",")
  "#{property_content}"
end