lib/flexmls_api/models/finders.rb in flexmls_api-0.3.6 vs lib/flexmls_api/models/finders.rb in flexmls_api-0.4.5
- old
+ new
@@ -34,12 +34,12 @@
raise NotImplementedError # TODO um... what?
end
def find_single(scope, options)
resp = connection.get("/#{element_name}/#{scope}", options)
- new(resp[0])
+ new(resp.first)
end
end
end
end
-
\ No newline at end of file
+