Sha256: f424fcaa145523eda9b5fd3410349eb6f61364448b73a52f526139ead79db05f
Contents?: true
Size: 391 Bytes
Versions: 3
Compression:
Stored size: 391 Bytes
Contents
module Smartfm::ActsAsLikable def likes(params = {}) hash = self.rest_client.likes(params.merge(:id => self.id)) self.deserialize(hash, :as => Smartfm::Like) || [] end def like!(auth, params = {}) self.rest_client.like!(auth, params.merge(:id => self.id)) end def unlike!(auth, params = {}) self.rest_client.unlike!(auth, params.merge(:id => self.id)) end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
nov-smartfm-1.0.2 | lib/smartfm/modules/acts_as_likable.rb |
smartfm-1.0.2 | lib/smartfm/modules/acts_as_likable.rb |
smartfm-1.0.1 | lib/smartfm/modules/acts_as_likable.rb |