Sha256: 874c158c60753006e97ef20794a768ec5c2cb51f47e3ef2e1275704d4d9aa4f7
Contents?: true
Size: 428 Bytes
Versions: 3
Compression:
Stored size: 428 Bytes
Contents
module Vkontakte module Api class Base attr_accessor :app, :default_params delegate :call, :to => :app def initialize(base) @app = base end def default_params @default_params ||= { :v => '5.24' } end def call(method_name, params = {}) params = default_params.merge(params) @app.call(method_name, params)['response'] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vkontakte-0.0.9 | lib/vkontakte/api/base.rb |
vkontakte-0.0.8 | lib/vkontakte/api/base.rb |
vkontakte-0.0.7 | lib/vkontakte/api/base.rb |