lib/flexmls_api/models/subresource.rb in flexmls_api-0.3.6 vs lib/flexmls_api/models/subresource.rb in flexmls_api-0.4.5
- old
+ new
@@ -1,13 +1,16 @@
module FlexmlsApi
module Models
module Subresource
- def find_by_listing_key(key, user)
- collect(connection.get("/listings/#{key}#{self.path}", :ApiUser => user))
+ def build_subclass
+ Class.new(self)
end
+ def find_by_listing_key(key, arguments={})
+ collect(connection.get("/listings/#{key}#{self.path}", arguments))
+ end
end
end
end