Sha256: 5f70809323b26b4caa40a00c28345d8da77377d3fca3f09a05abb611a479cddc

Contents?: true

Size: 589 Bytes

Versions: 3

Compression:

Stored size: 589 Bytes

Contents

module ToNetMeApi

  module Resolvable
    attr_reader :name
    
    # инициализация объекта и метода api.2net.me
    # @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.to_s
      @previous_resolver = options.delete(:resolver)
    end
    
    # Returns the auth_key from the previous resolver.
    # @return [String] A auth_key.
    def auth_key
      @previous_resolver.auth_key
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
to_net_me_api-0.4 lib/to_net_me_api/resolvable.rb
to_net_me_api-0.3 lib/to_net_me_api/resolvable.rb
to_net_me_api-0.2 lib/to_net_me_api/resolvable.rb