Module: ToNetMeApi::Resolvable

Included in:
Method, Namespace
Defined in:
lib/to_net_me_api/resolvable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/to_net_me_api/resolvable.rb', line 5

def name
  @name
end

Instance Method Details

#auth_keyString

Returns the auth_key from the previous resolver.

Returns:

  • (String)

    A auth_key.



17
18
19
# File 'lib/to_net_me_api/resolvable.rb', line 17

def auth_key
  @previous_resolver.auth_key
end

#initialize(name, options = {}) ⇒ Object

инициализация объекта и метода api.2net.me

Parameters:

  • name (String)

    The name of this resolvable.

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :resolver (Hashie::Mash)

    A mash holding information about the previous resolver.



10
11
12
13
# File 'lib/to_net_me_api/resolvable.rb', line 10

def initialize(name, options = {})
  @name = name.to_s
  @previous_resolver = options.delete(:resolver)
end