Module: Impermium::BlogPost
- Included in:
- Content
- Defined in:
- lib/impermium/content/blog_post.rb
Constant Summary collapse
- REPORTER_USER_TYPE_VALUES =
> default first
["ENDUSER", "MODERATOR"]
Instance Method Summary collapse
- #blog_post(user_id, blog_post_id, content, blog_post_permalink, blog_url, enduser_ip, options = {}, &block) ⇒ Object
- #blog_post_analyst_feedback(analyst_id, blog_post_id, desired_result, options = {}, &block) ⇒ Object
- #blog_post_user_feedback(rep_usr_id, rep_usr_type, reporter_ip, blog_post_id, desired_result, options = {}, &block) ⇒ Object
Instance Method Details
#blog_post(user_id, blog_post_id, content, blog_post_permalink, blog_url, enduser_ip, options = {}, &block) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/impermium/content/blog_post.rb', line 5 def blog_post(user_id, blog_post_id, content, blog_post_permalink, blog_url, enduser_ip, ={}, &block) .merge!( :user_id => user_id, :blog_post_id => blog_post_id, :content => content, :blog_post_permalink => blog_post_permalink, :blog_url => blog_url, :enduser_ip => enduser_ip ) post("blog_post", , &block) end |
#blog_post_analyst_feedback(analyst_id, blog_post_id, desired_result, options = {}, &block) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/impermium/content/blog_post.rb', line 17 def blog_post_analyst_feedback(analyst_id, blog_post_id, desired_result, ={}, &block) .merge!( :analyst_id => analyst_id, :blog_post_id => blog_post_id, :desired_result => desired_result ) post("blog_post/analyst_feedback", , &block) end |
#blog_post_user_feedback(rep_usr_id, rep_usr_type, reporter_ip, blog_post_id, desired_result, options = {}, &block) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/impermium/content/blog_post.rb', line 26 def blog_post_user_feedback(rep_usr_id, rep_usr_type, reporter_ip, blog_post_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, :blog_post_id => blog_post_id, :desired_result => desired_result ) post("blog_post/user_feedback", , &block) end |