Module: Velocify::Model::RequestHelpers

Included in:
RequestBuilder
Defined in:
lib/velocify/model.rb

Instance Method Summary collapse

Instance Method Details

#arrayify(data) ⇒ Object



35
36
37
38
39
40
41
# File 'lib/velocify/model.rb', line 35

def arrayify data
  if data.instance_of? Array
    data
  else
    [data]
  end
end