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
When I ask for a Debit I should get a Debit, if it's another type of object I should get an error
require 'balanced'
key = Balanced::ApiKey.new.save
Balanced.configure(key.secret)
marketplace = Balanced::Marketplace.new.save
# this should throw an error, instead, it returns an Account object
Balanced::Debit.find(marketplace.owner_account.uri)
The text was updated successfully, but these errors were encountered:
This is a fair request - it should be expected that the find class method of a Resource child only apply to its class types. The only coercion should happen if you use the super class, in this case Resource, find method, which coerce it into the appropriate type.
When I ask for a Debit I should get a Debit, if it's another type of object I should get an error
The text was updated successfully, but these errors were encountered: