Sha256: 6dcbe0b9206480d04a446709b4bdd8ae8166aad21f5acc1d48ca405770c34ad1

Contents?: true

Size: 276 Bytes

Versions: 3

Compression:

Stored size: 276 Bytes

Contents

module Socialcastr
  class Like < Base
    id_element
    element :unlikable
    element :user, :class => Socialcastr::User
    element :"created-at", :as => :created_at
    def unlikable_by?(api_id)
      @unlikable && api_id == self.user_id ? true : false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
socialcastr-0.1.3 lib/socialcastr/like.rb
socialcastr-0.1.2 lib/socialcastr/like.rb
socialcastr-0.1.1 lib/socialcastr/like.rb