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
Given the following node:
{ "name": "foo" }
#<HyperResource::Link:0x007f8d8644b978 @base_href="/api/nodes/e22d486a-f2cc-4ecf-8659-617cd80cf41f", @default_method="get", @name=nil, @params={}, @resource= #<HyperResource:0x3fc6c32651dc @root="http://trowel.dev/api" @href="/api/nodes" @loaded=true @namespace=nil ...>, @templated=false>
node.name and node['name'] both return nil
node.name
node['name']
The text was updated successfully, but these errors were encountered:
Just repeating what you mentioned to me earlier - you can obtain the value that you assigned to the name field through node.attributes['name'].
name
node.attributes['name']
Sorry, something went wrong.
That's correct, I think it might be worth changing the name to @_name, Rspec approaches it this way I think.
@_name
No branches or pull requests
Given the following node:
node.name
andnode['name']
both return nilThe text was updated successfully, but these errors were encountered: