Sha256: 69da4e4cdf036c61710a822516e17fce12b20b0b482fa147e372259f2f30d5d9
Contents?: true
Size: 414 Bytes
Versions: 4
Compression:
Stored size: 414 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 ||= {} end def call(method_name, params = {}) params = default_params.merge(params) @app.call(method_name, params)['response'] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vkontakte-0.0.6 | lib/vkontakte/api/base.rb |
vkontakte-0.0.5 | lib/vkontakte/api/base.rb |
vkontakte-0.0.4 | lib/vkontakte/api/base.rb |
vkontakte-0.0.3 | lib/vkontakte/api/base.rb |