class Harvesting::Models::ProjectUserAssignment
Public Instance Methods
path()
click to toggle source
# File lib/harvesting/models/project_user_assignment.rb, line 15 def path base_url = "projects/#{project.id}/user_assignments" @attributes['id'].nil? ? base_url : "#{base_url}/#{@attributes['id']}" end
to_hash()
click to toggle source
Calls superclass method
Harvesting::Models::Base#to_hash
# File lib/harvesting/models/project_user_assignment.rb, line 20 def to_hash { project_id: project.id, user_id: user.id }.merge(super) end