class Array
Public Instance Methods
camelize_keys()
click to toggle source
# File lib/softlayer.rb, line 143 def camelize_keys dup.camelize_keys! end
camelize_keys!()
click to toggle source
# File lib/softlayer.rb, line 147 def camelize_keys! each do |v| v.camelize_keys! if v.is_a?(Hash) v.camelize_keys! if v.is_a?(Array) end self end
to_softlayer()
click to toggle source
# File lib/softlayer.rb, line 155 def to_softlayer ary = [] self.each do |item| if item.respond_to?(:to_softlayer) ary << item.to_softlayer else ary << item end end [ary] end
to_softlayer_filter()
click to toggle source
# File lib/softlayer.rb, line 167 def to_softlayer_filter ary = [] self.each do |item| if item.respond_to?(:to_softlayer_filter) ary << item.to_softlayer_filter else ary << item end end [ary] end