-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
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
GETing term does not have more? defined #6
Comments
Nor can you call more? on the array inside the hash. |
This is on the current version of the gem. I am though using 1.0 due to the issue I mentioned in #7 . [4] pry(Term)> raw_terms['enrollment_terms'].more? |
@darrencauthon I have the same issues when trying to get quiz results and unable to use any of your Array extensions for more, next etc due to this line here resulting in a hash and not an array. I'm querying something like {
quiz_submissions: [
{...},
{...}
]
} And just to add, a simple |
I'll take a look... |
... and I took a look. That wasn't my code, my only contribution so far was an update to a test file. 😄 |
Ooops, Im sorry, I meant @whitmer |
I have more than 10 terms and looking at the raw returns in a rest client the 'next' and 'last' links are being returned. I can manually use them but not on the results of:
raw_terms = canvas.get("/api/v1/accounts/1/terms",{'workflow_state'=>'active'}) raw_terms.more? NoMethodError: undefined method 'more?' for #<Hash:0x007fc553935100>
Any thoughts? It seems like it should be returning ResultSet < Array and not a Hash
The text was updated successfully, but these errors were encountered: