bjjb / ebayr

A small library to help using the eBay Trading API with Ruby
MIT License
60 stars 49 forks source link

Allow to add attributes to tags #24

Closed GCorbel closed 6 years ago

GCorbel commented 8 years ago

This PR is related to issue #23 .

This allow to do Ebayr::Request.new(:AddOrder, input: [{ Order: { CreatingUserRole: 'Buyer', 'Total' => { value: 100, attr: { currencyID: 'EUR' } } } }]).send.

It will produce a body like this <Order><CreatingUserRole>Buyer</CreatingUserRole><Total currencyID=\"EUR\">100</Total></Order> as specified in the doc.

spk commented 8 years ago

Look like the CI build failure is not related to the changes