lib/runcible/resources/unit.rb in runcible-0.1.2 vs lib/runcible/resources/unit.rb in runcible-0.1.3
- old
+ new
@@ -4,11 +4,11 @@
def self.path(type)
"content/units/#{type}/search/"
end
- def self.search(type, criteria)
- call(:post, path(type), :payload=>{:required=>{:criteria=>criteria}})
+ def self.search(type, criteria, optional={})
+ call(:post, path(type), :payload=>{:required=>{:criteria=>criteria}, :optional=>optional})
end
end
end
end