Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Adding a way to access an Atom Entry field

#94

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...

Reported by Fabio Akita · May 31st, 2010 @ 06:37 PM

State: resolved
Milestone: 0.8.1
Assigned to: Fabio Akita Fabio Akita

Activity

  1. Fabio Akita
    Fabio Akita

    Fixing redirection when sending back a URI with query string (it was ignored before)

    http://github.com/akitaonrails/restfulie/commit/94270abf9b547f60b25...

    May 31st, 2010 @ 07:05 PM

  2. Guilherme Silveira
    Guilherme Silveira
    • 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 #21 Lookup elements in different namespaces

    It's only missing a invocation to super in case the text does not exist

    May 31st, 2010 @ 07:06 PM

  3. Fabio Akita
    Fabio Akita
    • State changed from new to resolved

    June 1st, 2010 @ 03:07 AM

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.