Method: Springpad.list

Defined in:
lib/springpad.rb

.list(type, options) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/springpad.rb', line 7

def self.list(type, options)
  api = Springpad::API.new
  options = {}
  options.merge({:public => false}) if options[:private]
  case type
  when "note"
    render api.notes(options)
  when "task"
    render api.tasks(options)
  end
end