class Array

SoftLayer Extensions to the Array class to support using arrays to create object masks

Public Instance Methods

_to_sl_object_mask_property() click to toggle source

Returns a string representing the object mask content represented by the Array. Each value in the array is converted to its object mask equivalent This routine is an implementation detail used in the conversion of hashes to object mask strings. You should not have to call this method directly.

# File lib/softlayer/object_mask_helpers.rb, line 74
def _to_sl_object_mask_property()
  return "" if self.empty?
  property_content = map { |item| item ? item._to_sl_object_mask_property() : nil  }.compact.flatten.join(",")
  "#{property_content}"
end