Method: Etcd::Response#initialize
- Defined in:
- lib/etcd/response.rb
#initialize(opts, headers = {}) ⇒ Response
Returns a new instance of Response.
16 17 18 19 20 21 22 |
# File 'lib/etcd/response.rb', line 16 def initialize(opts, headers = {}) @action = opts['action'] @node = Node.new(opts['node']) @etcd_index = headers[:etcd_index] @raft_index = headers[:raft_index] @raft_term = headers[:raft_term] end |