We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to this example:
lists = client.get_lists lists.each do |list| puts list.id # => Fixnum puts list.name # => 'new_list' puts list.recipient_count # => Fixnum
I get error:
NoMethodError: undefined method `id' for #<Array:0x007fcbe4bbebf0>
Lists array looks like:
=> #<struct SendGrid4r::REST::MarketingCampaigns::Contacts::Lists::Lists lists=[#<struct SendGrid4r::REST::MarketingCampaigns::Contacts::Lists::List id=542087, name="buyers", recipient_count=0>, #<struct SendGrid4r::REST::MarketingCampaigns::Contacts::Lists::List id=542086, name="sellers", recipient_count=0>, #<struct SendGrid4r::REST::MarketingCampaigns::Contacts::Lists::List id=542088, name="subscribers", recipient_count=0>]>
The text was updated successfully, but these errors were encountered:
Work only if:
lists[0].each do |list| ...
Sorry, something went wrong.
Hello @alexey, The document was incorrect. I fixed that.
lists.lists.each do |list| ...
No branches or pull requests
According to this example:
I get error:
Lists array looks like:
The text was updated successfully, but these errors were encountered: