#94 ✓resolved
Fabio Akita

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

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.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Tags

Pages