Method: Relationships#get_relationship
- Defined in:
- lib/user/config/relationships.rb
#get_relationship(id, options = nil) ⇒ Object
Get relationship.
Get a relationship info.
Parameters
- id
-
(Integer) – Relationship id.
- options
-
(Hash) – List of Resource Collection Options shown above can be used as parameter.
First Example
@data = @mints_user.get_relationship(1)
Second Example
= { "fields": "id" }
@data = @mints_user.get_relationship(1, )
86 87 88 |
# File 'lib/user/config/relationships.rb', line 86 def get_relationship(id, = nil) return @client.raw("get", "/config/relationships/#{id}", ) end |