Sha256: 623b9dc94b479ea71111d53e9ebc485171c15f0b1db39d2b290a335dee90eac9
Contents?: true
Size: 594 Bytes
Versions: 6
Compression:
Stored size: 594 Bytes
Contents
class Smartfm::Like < Smartfm::Base ATTRIBUTES = [:id, :type, :title, :description, :href, :favorite, :user] attr_reader *ATTRIBUTES include Smartfm::PrivateContent def self.rest_client; Smartfm::RestClient::Like; end def rest_client; self.class.rest_client; end def initialize(params) @id = params[:id] @type = params[:user] @title = params[:title] @description = params[:description] @href = params[:href] @favorite = params[:favorite] @user = self.deserialize(params[:user], :as => Smartfm::User) end end
Version data entries
6 entries across 6 versions & 2 rubygems