Parsing or access result object data?
This seems like it should be simple but I'm doing something wrong. How do I get access to the data from the result? I'm trying this:
result = Cloudinary::Api.resources(type: :upload)
result.resources.each do |resource|
puts resource
end
I see the results returned. But when I try to access the data I get this error:
undefined method `resources' for #<Cloudinary::Api::Response:0x007fa38fdeb9c8>
What am I missing?
Please sign in to leave a comment.
Comments
2 comments