Sha256: a78ac8078a1558ed6bfc81503cc033d72bf3808afc6375022bdc60c4d0b552fe
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 Bytes
Contents
module Whatser class Comment < Whatser::Resource attr_accessor :id,:user_id,:activity_feed_id,:subject_id,:created_at attr_accessor :user_name,:user_avatar,:subject_type,:subject_name,:body class << self def poi(poi_id, opts={}) api_request :get, "/api/poi/#{poi_id}/comments", {:query => opts} end def media(media_id, opts={}) api_request :get, "/api/media/#{media_id}/comments", {:query => opts} end def delete(id) api_request :delete, "/api/comments/#{id}" end def create(resource_name, resource_id, body) api_request :post, "/api/#{resource_name}/#{resource_id}/tags", {:body => {'comment' => {'body' => body}} } end end def delete self.class.delete(id) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whatser-0.4.0 | lib/whatser/resources/comment.rb |