-
Notifications
You must be signed in to change notification settings - Fork 42
How can someone creates a Query object or a LookWithQuery object in Ruby? #54
Comments
the looker-sdk-ruby package just uses hashes instead of class objects or any other strong types. so query = {model: "mymodel", view: "myview", fields: ["mymodel.somefield"]}
sdk.create_query(query) we will eventually release a new (strongly typed) version of the ruby sdk using our sdk-codgen project which will probably have something like |
I see, let me give that a try! |
@joeldodge79 Could you please let me know if this is what you meant? I get validation failed error :(
|
What's the error message? |
@joeldodge79 seems like it can't find such method:
|
that's a misleading line in the stack trace - the sdk implementation relies on "missing_method" to dynamically dispatch to the correct api call. The |
@joeldodge79 I'll play around with this one to see if I can make it work |
@joeldodge79 and that seems to work fine for me:
Thank you |
interesting, ok well glad you're unblocked |
How can someone creates a Query object or a LookWithQuery object in Ruby?
In python you show that these can be created by using:
However, I couldn't find any examples on how to do this in Ruby and they are needed to call run_inline_query() or update_look()
Thanks!
The text was updated successfully, but these errors were encountered: