Module: Smartfm::PrivateContent::ClassMethods

Defined in:
lib/smartfm/modules/private_content.rb

Instance Method Summary collapse

Instance Method Details

#create(auth, params = {}) ⇒ Object



14
15
16
# File 'lib/smartfm/modules/private_content.rb', line 14

def create(auth, params = {})
  self.new(params).save(auth)
end

#of_current(auth, params = {}) ⇒ Object



9
10
11
12
# File 'lib/smartfm/modules/private_content.rb', line 9

def of_current(auth, params = {})
  hash = self.rest_client.of_current(auth, params)
  self.deserialize(hash) || []
end