Class: Cacho
- Inherits:
-
Object
- Object
- Cacho
- Defined in:
- lib/cacho.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.1.3"
Instance Attribute Summary collapse
-
#hasher ⇒ Object
Returns the value of attribute hasher.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Cacho
constructor
A new instance of Cacho.
- #request(verb, *args) ⇒ Object
Constructor Details
Instance Attribute Details
#hasher ⇒ Object
Returns the value of attribute hasher.
12 13 14 |
# File 'lib/cacho.rb', line 12 def hasher @hasher end |
Instance Method Details
#request(verb, *args) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/cacho.rb', line 20 def request(verb, *args) if verb == :get uri = @client.uri(*args) @db.get(verb, uri) do @client.request(verb, *args) end else @client.request(verb, *args) end end |