Change offeres_to to offers_to for method naming

This commit is contained in:
François Turbelin
2020-10-11 20:32:10 +02:00
parent 779241db7a
commit bf4bb854b1

View File

@@ -6,7 +6,7 @@ module DfcProvider
class OfferSerializer < ActiveModel::Serializer
attribute :id, key: '@id'
attribute :type, key: '@type'
attribute :offeres_to, key: 'dfc:offeres_to'
attribute :offers_to, key: 'dfc:offers_to'
attribute :price, key: 'dfc:price'
attribute :stock_limitation, key: 'dfc:stockLimitation'
@@ -18,7 +18,7 @@ module DfcProvider
'dfc:Offer'
end
def offeres_to
def offers_to
{
'@type' => '@id',
'@id' => nil