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

Version Path
nov-smartfm-0.4.1 lib/smartfm/models/like.rb
nov-smartfm-1.0.0 lib/smartfm/models/like.rb
nov-smartfm-1.0.2 lib/smartfm/models/like.rb
smartfm-1.0.1 lib/smartfm/models/like.rb
smartfm-1.0.2 lib/smartfm/models/like.rb
smartfm-1.0.0 lib/smartfm/models/like.rb