lib/contact-data/contact.rb in contact-data-0.2.2 vs lib/contact-data/contact.rb in contact-data-0.2.3
- old
+ new
@@ -7,8 +7,14 @@
def search(name, options = {})
options[:base] = BASE
options[:params] = { name: name }
Fetcher.get(:search, options)
end
+
+ def from(source, slug, options = {})
+ options[:base] = BASE
+ options[:params] = { source: source, slug: slug }
+ Fetcher.get(:from, options)
+ end
end
end
end