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
I have the following response format:
{ price: { amount: 179, currency: "EUR" } }
I would like to have the attributes amount and currency, so I tried this
amount
currency
attribute :price, aliases: 'price', squash: 'amount' attribute :currency, aliases: 'price', squash: 'currency'
Problem is that the alias of the second attribute overwrites the first attribute and the resulting object only has currency but no price.
price
The text was updated successfully, but these errors were encountered:
7d1ba88
Merge pull request #25 from krautcomputing/allow_same_aliases_for_mul…
f99dd73
…tiple_attributes Allow same aliases for multiple attributes, fixes #23
lanej
No branches or pull requests
I have the following response format:
I would like to have the attributes
amount
andcurrency
, so I tried thisProblem is that the alias of the second attribute overwrites the first attribute and the resulting object only has
currency
but noprice
.The text was updated successfully, but these errors were encountered: