Class: Etcdv3::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/etcdv3/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname, credentials, metadata, metacache) ⇒ Request

Returns a new instance of Request.



6
7
8
9
10
11
# File 'lib/etcdv3/request.rb', line 6

def initialize(hostname, credentials, , metacache)
  @hostname = hostname
  @credentials = credentials
   = 
  @metacache = metacache
end

Instance Attribute Details

#metacacheObject (readonly)

Returns the value of attribute metacache.



4
5
6
# File 'lib/etcdv3/request.rb', line 4

def metacache
  @metacache
end

Instance Method Details

#handle(interface, method, method_args = []) ⇒ Object



13
14
15
16
# File 'lib/etcdv3/request.rb', line 13

def handle(interface, method, method_args=[])
  interface = resolve_interface(interface)
  interface.send(method, *method_args)
end