nylas / nylas-ruby

Ruby bindings for the Nylas Platform APIs
https://nylas.com/docs
MIT License
101 stars 130 forks source link

Event (and maybe other objects) missing 'updated_at' attribute. #407

Closed tvongaza closed 1 year ago

tvongaza commented 1 year ago

Describe the bug The web API returns an updated_at field, however it is not included in the ruby library as a defined attribute.

To Reproduce Some steps involved to reproduce the bug and any code samples you can share.

- Call the events api via curl and see the event having an updated_at field.
- Call the same event via the ruby sdk and see the ruby object does not have an updated_at field.

Expected behavior The ruby events object should have the same fields, such as updated_at as the web api.

SDK Version: Latest as of March 9, 2023.

Additional context I monkey patched the event class as follows, which gets me the updated_at field as expected.

Nylas::Event.class_eval do
  attribute :updated_at, :integer, read_only: true
end