Skip to content
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

(NoMethodError) Couldn't do view_request.role_name (our legacy js code does it though) #104

Open
la-ruby opened this issue Dec 17, 2021 · 0 comments
Assignees

Comments

@la-ruby
Copy link

la-ruby commented Dec 17, 2021

I'm trying to emulate some js code written by a previous dev.

// js code
let viewRequest = new docusign.RecipientViewRequest();
viewRequest.returnUrl = "https://acme.org/admin";
viewRequest.authenticationMethod = "none";
viewRequest.email = "[email protected]";
viewRequest.userName =  "John Doe";
viewRequest.roleName = "CEO";
viewRequest.clientUserId = USER_ID;
# ruby code
view_request = DocuSign_eSign::RecipientViewRequest.new
view_request.return_url = "https://acme.org/admin"
view_request.authentication_method = 'none'
view_request.email = "[email protected]"
view_request.user_name = "John Doe"
view_request.role_name = "CEO" # Why npm package supports this but gem doesnt
view_request.client_user_id = USER_ID

I get NoMethodError (undefined method `role_name=' for #<DocuSign_eSign::RecipientViewRequest:0x000000011c8ce278
How was the js developer able to set the role_name, and I cannot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants