Sha256: 390fe9b21d1935e91b9746608d2abc6153b77ede6397068194831fbb95a83ede

Contents?: true

Size: 595 Bytes

Versions: 7

Compression:

Stored size: 595 Bytes

Contents

module Vkontakte
  module Api
    module Likes

      def self.included(base)
        base.class_eval do
          define_method :likes do
            @likes ||= Standart.new(self)
          end
        end
      end

      class Standart < Api::Base
        # http://vk.com/developers.php?oid=-1&p=likes.getList
        #
        def getList(options = {})
          call('likes.getList', options)
        end

        # http://vk.com/developers.php?o=-1&p=likes.isLiked
        #
        def isLiked(options = {})
          call('likes.isLiked', options)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vkontakte-0.0.9 lib/vkontakte/api/likes.rb
vkontakte-0.0.8 lib/vkontakte/api/likes.rb
vkontakte-0.0.7 lib/vkontakte/api/likes.rb
vkontakte-0.0.6 lib/vkontakte/api/likes.rb
vkontakte-0.0.5 lib/vkontakte/api/likes.rb
vkontakte-0.0.4 lib/vkontakte/api/likes.rb
vkontakte-0.0.3 lib/vkontakte/api/likes.rb