You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cause is into the Sawyer::Resouce implementation. Sawyer::Resouce#[] calls #method_missing and searches the key from inner fields.
Ordinarily it will return nil if does not find the key.
However, :max is Enumerable module instance so it will happen that calls Enumerable#max method.
The text was updated successfully, but these errors were encountered:
An API is expected to return following result.
An instance which implemented with MyApiClient returns that result as Sawyer::Resource.
However, if the API returns following result, above execution will unexpected result.
The cause is into the
Sawyer::Resouce
implementation.Sawyer::Resouce#[]
calls#method_missing
and searches the key from inner fields.Ordinarily it will return
nil
if does not find the key.However,
:max
isEnumerable
module instance so it will happen that callsEnumerable#max
method.The text was updated successfully, but these errors were encountered: