Sha256: 0746619c23cd56c74e2818a0a1b42a5055bfe9c6f6d9870da720bad86590b50a
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 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) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vkontakte-0.0.2 | lib/vkontakte/api/base.rb |