Class: Etcdv3::Request
- Inherits:
-
Object
- Object
- Etcdv3::Request
- Defined in:
- lib/etcdv3/request.rb
Instance Attribute Summary collapse
-
#metacache ⇒ Object
readonly
Returns the value of attribute metacache.
Instance Method Summary collapse
- #handle(interface, method, method_args = []) ⇒ Object
-
#initialize(hostname, credentials, metadata, metacache) ⇒ Request
constructor
A new instance of Request.
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, , ) @hostname = hostname @credentials = credentials = = end |
Instance Attribute Details
#metacache ⇒ Object (readonly)
Returns the value of attribute metacache.
4 5 6 |
# File 'lib/etcdv3/request.rb', line 4 def 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 |