class Medlink::Activity
Public Instance Methods
create()
click to toggle source
# File lib/medlink/activity.rb, line 9 def create json = client.post("#{path}", params) self.class.new(json) end
Private Instance Methods
params()
click to toggle source
# File lib/medlink/activity.rb, line 21 def params params = { institution: { google_place_id: institution.google_place_id }, user: { id: user.id }, activity: { source: source } } params end
path()
click to toggle source
# File lib/medlink/activity.rb, line 17 def path "activities" end