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