class Imperium::KVPUTResponse

KVPUTResponse is a wrapper for the raw HTTP::Message response from the API

@note This class doesn't really make sense to be instantiated outside of

{KV#put}

@!attribute [rw] options

@return [Hash<Symbol, Object>] The options for the get request after being
coerced from an array to hash.

Attributes

options[RW]

Public Class Methods

new(message, options: {}) click to toggle source
Calls superclass method
# File lib/imperium/kv_put_response.rb, line 15
def initialize(message, options: {})
  super message
  @options = options
end

Public Instance Methods

success?() click to toggle source
# File lib/imperium/kv_put_response.rb, line 21
def success?
  return @success if defined? @success
  @success = (body.chomp == "true")
end