Method: Couchup::Commands::Get#run
- Defined in:
- lib/couchup/commands/get.rb
#run(id = nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/couchup/commands/get.rb', line 5 def run(id = nil) needs_db! match = id.nil? ? Couchup.all.collect{|c| c["doc"]} : Couchup.get(id) ap match match end |