class Podio::Reference

@see developers.podio.com/doc/reference

Public Class Methods

count_users_with_access(ref_type, ref_id) click to toggle source

@see developers.podio.com/doc/reference/count-user-profiles-with-access-to-object-19190550

# File lib/podio/models/reference.rb, line 46
def count_users_with_access(ref_type, ref_id)
  Podio.connection.get("/reference/#{ref_type}/#{ref_id}/accessible_by/count").body['count']
end
find(ref_type, ref_id, options = {}) click to toggle source

@see developers.podio.com/doc/reference/get-reference-10661022

# File lib/podio/models/reference.rb, line 17
def find(ref_type, ref_id, options = {})
  member Podio.connection.get { |req|
    req.url("/reference/#{ref_type}/#{ref_id}", options)
  }.body
end
find_users_with_access(ref_type, ref_id, options = {}) click to toggle source

@see developers.podio.com/doc/reference/get-users-with-access-to-object-16681010

# File lib/podio/models/reference.rb, line 39
def find_users_with_access(ref_type, ref_id, options = {})
  self.klass_from_string('Contact').list Podio.connection.get { |req|
    req.url("/reference/#{ref_type}/#{ref_id}/accessible_by/", options)
  }.body
end