lib/guillotine/adapters/riak_adapter.rb
# Retrieves a URL riak value from the code.
#
# code - The String code to lookup the URL.
#
# Returns a Riak::RObject, or nil if none is found.
Retrieves a URL riak value from the code.
code - The String code to lookup the URL.

Returns a Riak::RObject, or nil if none is found.
Retrieves a URL riak value from the code . code - The String code to lookup the URL . Returns a Riak :: RObject or nil if none is found .
def url_object(code)
      @code_bucket.get(code, :r => 1)
    rescue Riak::FailedRequest => err
      raise unless err.not_found?
    end
def url_object ( code ) @code_bucket . get ( code , :r => 1 ) rescue Riak :: FailedRequest => err raise unless err . not_found? end
Retrieves a URL riak value from the code.
Retrieves a URL riak value from the code .
code
<not_specific>