libraries/AssociationManagement.rb
# Adds an association for the data with the key.
# The data must be serializable.
#
# @param key [String]  the key for the association
# @param data [serializable object]  the data for the association
# @param opts [Hash]  Additional Options
# @option tag  [String]  If putting an Upload, optionally specify an extra label
Adds an association for the data with the key.
The data must be serializable.
Adds an association for the data with the key . The data must be serializable .
def put(key, data, opts = { tag: {} })
      @map[key] = if data.is_a?(Upload)
                    UploadAssoc.new(opts[:tag], data)
                  else
                    data
                  end
    end
def put ( key , data , opts = { tag : { } } ) @map [ key ] = if data . is_a? ( Upload ) UploadAssoc . new ( opts [ :tag ] , data ) else data end end
Adds an association for the data with the key.
Adds an association for the data with the key .
key
the key for the association
the key for the association
data
the data for the association
the data for the association
opts
None
tag
If putting an Upload, optionally specify an extra label
If putting an Upload optionally specify an extra label