class Flowthings::Drop

Attributes

flow_id[RW]
flow_ids[RW]

Public Class Methods

new(flow_id, connection, options={}) click to toggle source
Calls superclass method
# File lib/flowthings/platform_objects/drop.rb, line 17
def initialize(flow_id, connection, options={})
  if flow_id.kind_of? Array
    @flow_ids = flow_id
  else
    @flow_id = flow_id
  end

  super connection, options
end

Public Instance Methods

create(data, params={}) click to toggle source
Calls superclass method
# File lib/flowthings/platform_objects/drop.rb, line 27
def create(data, params={})
  if !data["path"] && !@flow_id
    raise ArgumentError.new("You either need a path in the drop data, or the Drop instance needs a flow_id")
  end

  super data, params
end