Fetching attributes of Class not logical #145
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
One would assume that getting all keys of a Model based on aws-record works via ClassName.attributes.keys. It actually is ClassName.attributes.attributes.keys:
ClassName.attributes returns more of an internal data structure.
Use Case
To know the attributes of a Model.
Proposed Solution
Both methods should be supported e.g.:
If you want to make life easier for people who come from activerecord, you might also want to support the method attribute_names
Other Information
No response
Acknowledgements
aws-sdk-ruby-record version used
latest
Environment details (OS name and version, etc.)
latest
The text was updated successfully, but these errors were encountered: