Adding a way to access an Atom Entry field
Reported by Fabio Akita | May 31st, 2010 @ 06:37 PM | in 0.8.1
if I had a member declared like this:
member.values do |value|
value.id app.id
value.title app.name
value.updated_at app.updated_at.utc
value.state app.state
value.description app.description
value.price app.price
end
I couldn't access fields such as "description", "price", etc. So I added a method_missing to the base Xml class of the Atom representation so I can do:
entry.description
#=> "Foo"
entry.price
#=> "10.0"
Patch: http://github.com/akitaonrails/restfulie/commit/430c9031b7e84f33904...
Comments and changes to this ticket
-
Fabio Akita May 31st, 2010 @ 07:05 PM
Fixing redirection when sending back a URI with query string (it was ignored before)
http://github.com/akitaonrails/restfulie/commit/94270abf9b547f60b25...
-
Guilherme Silveira May 31st, 2010 @ 07:06 PM
- Tag changed from atom, fields to atom, bug, fields
- State changed from resolved to new
It is a bug actually, this support was added as of http://restfulie.lighthouseapp.com/projects/49615/tickets/21-lookup...
It's only missing a invocation to super in case the text does not exist
-
Fabio Akita June 1st, 2010 @ 03:07 AM
- State changed from new to resolved
Just added the super support here: http://github.com/akitaonrails/restfulie/commit/a4573ab89594142eb70...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »