Skip to content
New issue

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

Attempt#2: support for explicit node attributes using keys beginning with "@" #19

Merged
merged 10 commits into from
Dec 15, 2012

Conversation

razum2um
Copy link
Contributor

@razum2um razum2um commented Dec 1, 2012

Again, building collectional xml nodes like

<FlightSegment DepartureDateTime="2013-03-10T17:25:00">   
    <DepartureAirport LocationCode="DME"/>
</FlightSegment>
<FlightSegment DepartureDateTime="2013-03-10T19:20:00">
    <DepartureAirport LocationCode="DUS"/>
</FlightSegment>

having Flights objects array makes me iterate over it twice: one time to build bodies, the second time to build attributes. This gets even worse if these cases are nested.

So I rebased #10 on your master, but changed _content to :content! This seems more natural for this lib

Tests included

@rubiii
Copy link
Contributor

rubiii commented Dec 15, 2012

thanks for updating this one guys!

rubiii added a commit that referenced this pull request Dec 15, 2012
Attempt#2: support for explicit node attributes using keys beginning with "@"
@rubiii rubiii merged commit 6a20edc into savonrb:master Dec 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants