Module: SmoothOperator::FinderMethods
Defined Under Namespace
Modules: HelperMethods
Instance Method Summary collapse
Instance Method Details
#find(relative_path, data = {}, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/smooth_operator/finder_methods.rb', line 6 def find(relative_path, data = {}, = {}) relative_path = '' if relative_path == :all get(relative_path, data, ) do |remote_call| if remote_call.ok? remote_call.object = HelperMethods .build_object(self, remote_call.parsed_response, ) end block_given? ? yield(remote_call) : remote_call end end |