lib/lazy_resource/resource.rb in lazy_resource-0.1.0 vs lib/lazy_resource/resource.rb in lazy_resource-0.2.0
- old
+ new
@@ -38,9 +38,17 @@
# The site variable is required for Active Async's mapping to work.
def site=(site)
@site = site
end
+ def from
+ @from
+ end
+
+ def from=(from)
+ @from = from
+ end
+
def request_queue
Thread.current[:request_queue] ||= Typhoeus::Hydra.new
end
def find(id, params={}, options={})