Sha256: 180b2f63978f3a653351a805d281d08883436aa8284b557c8e32d4df1340d9c9
Contents?: true
Size: 489 Bytes
Versions: 3
Compression:
Stored size: 489 Bytes
Contents
module Smartfm::PrivateContent def self.included(base) base.extend(ClassMethods) base.send(:include, InstanceMethods) end module ClassMethods def of_current(auth, params = {}) hash = self.rest_client.of_current(auth, params) self.deserialize(hash) || [] end def create(auth, params = {}) self.new(params).save end end module InstanceMethods def save(auth) self.rest_client.create(auth, self.to_post_data) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
nov-smartfm-0.4.1 | lib/smartfm/modules/private_content.rb |
nov-smartfm-1.0.0 | lib/smartfm/modules/private_content.rb |
smartfm-1.0.0 | lib/smartfm/modules/private_content.rb |