Sha256: da3a6aa0cce068512cd7833e8873c705f85f45589b930781a3b4e62c027febc7

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
socialcastr-0.0.1 lib/socialcastr/like.rb