Class: Consul::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/consul/data.rb

Instance Method Summary collapse

Constructor Details

#initialize(response_hash) ⇒ Data

Returns a new instance of Data.



6
7
8
# File 'lib/consul/data.rb', line 6

def initialize(response_hash)
  @response = response_hash
end

Instance Method Details

#flagsObject



14
15
16
# File 'lib/consul/data.rb', line 14

def flags
  hash_map(__callee__)
end

#valueObject



10
11
12
# File 'lib/consul/data.rb', line 10

def value
  Base64.decode64(hash_map('Value'))
end