Method: Relationships#create_relationship

Defined in:
lib/user/config/relationships.rb

#create_relationship(data) ⇒ Object

Create relationship.

Create a relationship with data.

Parameters

data

(Hash) – Data to be submitted.

Example

data = {
  "alias_1": "eventsCopy",
  "alias_2": "ticketsCopy",
  "object_model_1": "Story",
  "object_model_2": "Product"
}
@data = @mints_user.create_relationship(data)


104
105
106
# File 'lib/user/config/relationships.rb', line 104

def create_relationship(data)
    return @client.raw("post", "/config/relationships", nil, data_transform(data))
end