lib/fastly/fetcher.rb in fastly-1.01 vs lib/fastly/fetcher.rb in fastly-1.1.0

- old
+ new

@@ -16,11 +16,11 @@ def client(opts={}) @client ||= Fastly::Client.new(opts) end def list(klass, opts={}) - list = client.get(klass.list_path, opts) + list = client.get(klass.list_path(opts)) return [] if list.nil? list.map { |hash| klass.new(hash, self) } end def get(klass, *args) @@ -46,6 +46,6 @@ def delete(klass, obj) return client.delete(klass.delete_path(obj)) end end -end \ No newline at end of file +end