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)


107
108
109
# File 'lib/user/config/relationships.rb', line 107

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