Class: Consul::Data
- Inherits:
-
Object
- Object
- Consul::Data
- Extended by:
- Forwardable
- Defined in:
- lib/consul/data.rb
Instance Method Summary collapse
- #flags ⇒ Object
-
#initialize(response_hash) ⇒ Data
constructor
A new instance of Data.
- #value ⇒ Object
Constructor Details
#initialize(response_hash) ⇒ Data
Returns a new instance of Data.
10 11 12 |
# File 'lib/consul/data.rb', line 10 def initialize(response_hash) @response = response_hash end |
Instance Method Details
#flags ⇒ Object
19 20 21 |
# File 'lib/consul/data.rb', line 19 def flags hash_map(__callee__) end |
#value ⇒ Object
14 15 16 17 |
# File 'lib/consul/data.rb', line 14 def value text = Base64.decode64(hash_map('Value')) try_decode(text) end |