Module: Impermium::Bookmark
- Included in:
- Content
- Defined in:
- lib/impermium/content/bookmark.rb
Constant Summary collapse
- REPORTER_USER_TYPE_VALUES =
> default first
["ENDUSER", "MODERATOR"]
Instance Method Summary collapse
- #bookmark(user_id, bookmark_id, bookmark_url, enduser_ip, options = {}, &block) ⇒ Object
- #bookmark_analyst_feedback(analyst_id, bookmark_id, desired_result, options = {}, &block) ⇒ Object
- #bookmark_like(user_id, bookmark_id, bookmark_url, like_value, enduser_ip, options = {}, &block) ⇒ Object
- #bookmark_user_feedback(rep_usr_id, rep_usr_type, reporter_ip, bookmark_id, desired_result, options = {}, &block) ⇒ Object
Instance Method Details
#bookmark(user_id, bookmark_id, bookmark_url, enduser_ip, options = {}, &block) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/impermium/content/bookmark.rb', line 5 def bookmark(user_id, bookmark_id, bookmark_url, enduser_ip, ={}, &block) .merge!( :user_id => user_id, :bookmark_id => bookmark_id, :bookmark_url => bookmark_url, :enduser_ip => enduser_ip ) post("bookmark", , &block) end |
#bookmark_analyst_feedback(analyst_id, bookmark_id, desired_result, options = {}, &block) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/impermium/content/bookmark.rb', line 26 def bookmark_analyst_feedback(analyst_id, bookmark_id, desired_result, ={}, &block) .merge!( :analyst_id => analyst_id, :bookmark_id => bookmark_id, :desired_result => desired_result ) post("bookmark/analyst_feedback", , &block) end |
#bookmark_like(user_id, bookmark_id, bookmark_url, like_value, enduser_ip, options = {}, &block) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/impermium/content/bookmark.rb', line 15 def bookmark_like(user_id, bookmark_id, bookmark_url, like_value, enduser_ip, ={}, &block) .merge!( :user_id => user_id, :bookmark_id => bookmark_id, :bookmark_url => bookmark_url, :like_value => like_value, :enduser_ip => enduser_ip ) post("bookmark/like", , &block) end |
#bookmark_user_feedback(rep_usr_id, rep_usr_type, reporter_ip, bookmark_id, desired_result, options = {}, &block) ⇒ Object
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/impermium/content/bookmark.rb', line 35 def bookmark_user_feedback(rep_usr_id, rep_usr_type, reporter_ip, bookmark_id, desired_result, ={}, &block) .merge!( :reporter_user_id => rep_usr_id, :reporter_user_type => REPORTER_USER_TYPE_VALUES.include?(rep_usr_type) ? rep_usr_type : REPORTER_USER_TYPE_VALUES.first, :reporter_ip => reporter_ip, :bookmark_id => bookmark_id, :desired_result => desired_result ) post("bookmark/user_feedback", , &block) end |