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
Trying to retrieve a DEPOSIT-US node via user.find_node(id: node_id) raises a KeyError: key not found: "DEPOSIT-US" error.
user.find_node(id: node_id)
KeyError: key not found: "DEPOSIT-US"
Looks like this would involve adding a new DepositUsNode class in line with the pattern surrounding the other node classes.
DepositUsNode
Also, changing: https://github.com/synapsepay/SynapsePayRest-Ruby/blob/04f48e69f63c8a27422994f516d0a192bc543f9a/lib/synapse_pay_rest/models/node/node.rb#L95 to:
klass = NODE_TYPES_TO_CLASSES.[response['type']] || BaseNode
should work in the meantime. Currently, fetch raises the error never reaching the default class.
fetch
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Trying to retrieve a DEPOSIT-US node via
user.find_node(id: node_id)
raises aKeyError: key not found: "DEPOSIT-US"
error.Looks like this would involve adding a new
DepositUsNode
class in line with the pattern surrounding the other node classes.Also, changing:
https://github.com/synapsepay/SynapsePayRest-Ruby/blob/04f48e69f63c8a27422994f516d0a192bc543f9a/lib/synapse_pay_rest/models/node/node.rb#L95
to:
should work in the meantime. Currently,
fetch
raises the error never reaching the default class.The text was updated successfully, but these errors were encountered: