Class: Riak::Client::CurbBackend

Inherits:
HTTPBackend show all
Defined in:
riak-client/lib/riak/client/curb_backend.rb

Overview

An HTTP backend for Riak::Client that uses the ‘curb’ library/gem. Conforms to the Riak::Client::HTTPBackend interface.

Instance Attribute Summary

Attributes inherited from HTTPBackend

client

Class Method Summary (collapse)

Methods inherited from HTTPBackend

#delete_object, #fetch_object, #get_bucket_props, #initialize, #link_walk, #list_buckets, #list_keys, #mapred, #ping, #reload_object, #set_bucket_props, #stats, #store_object

Methods included from HTTPBackend::ObjectMethods

#load_object, #reload_headers, #store_headers

Methods included from HTTPBackend::TransportMethods

#basic_auth_header, #client_id, #default_headers, #delete, #get, #head, #path, #post, #put, #return_body?, #root_uri, #valid_response?, #verify_path!, #verify_path_and_body!

Methods included from Util::Translation

#i18n_scope, #t

Methods included from Util::Escape

#escape, #unescape

Constructor Details

This class inherits a constructor from Riak::Client::HTTPBackend

Class Method Details

+ (Boolean) configured?

Returns:



25
26
27
28
29
30
31
32
# File 'riak-client/lib/riak/client/curb_backend.rb', line 25

def self.configured?
  begin
    require 'curb'
    true
  rescue LoadError
    false
  end
end