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

Accessing _info metadata from service ticket #3

Open
bartbunting opened this issue Mar 4, 2018 · 2 comments
Open

Accessing _info metadata from service ticket #3

bartbunting opened this issue Mar 4, 2018 · 2 comments
Assignees

Comments

@bartbunting
Copy link

Hi,

I am trying to access the values in the _info metadata of a service ticket.

This appears not to be possible currentlyunless I'm missing something.

The values show up in the debug output when the ticket is retrieved:

"_info":{"lastUpdated":"2018-03-04T12:22:10Z","updatedBy":"bart","

When I try and access via the _info metadata object they do not exist.

error: undefined method `last_updated' for #<ConnectWise::Metadata:0x00007f94bddfac10>

The code is:

puts "Last updated: #{t._info.last_updated}"

Looking at the metadata.rb model there appear to be no accessors defined for any of the values that show up in the debug.

Is it a case of simply defining these?

I'm sorry I don't understand how the classes are generated.

Happy to make a patch if it is as simple as defining the missing data.

Any advice welcome.

@sowderca sowderca self-assigned this Mar 8, 2018
@sowderca
Copy link
Owner

@bartbunting, yes this appears to be an issue with the schema generation. I believe I have a fix for it, which I'll test and push an update for. Sorry about the wait.

@sowderca
Copy link
Owner

@bartbunting are you still having this problem?

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