Sha256: f6c8e4cc393f5420876bd55748537121f506aa49d111bc2bd751d6c64df6a9d1
Contents?: true
Size: 651 Bytes
Versions: 10
Compression:
Stored size: 651 Bytes
Contents
module VkontakteApi # A mixin for classes that will be resolved via `#method_missing`. module Resolvable attr_reader :name # Creates a resolvable object keeping it's name and the object that resolved it. # @param [String] name The name of this resolvable. # @option options [Hashie::Mash] :resolver A mash holding information about the previous resolver. def initialize(name, options = {}) @name = name @previous_resolver = options.delete(:resolver) end # Returns the token from the previous resolver. # @return [String] A token. def token @previous_resolver.token end end end
Version data entries
10 entries across 10 versions & 1 rubygems