jayzes (owner)

Fork Of

Revisions

gist: 115958 Download_button fork
public
Public Clone URL: git://gist.github.com/115958.git
Embed All Files: show embed
parsing.rb #
1
2
3
4
5
6
7
8
9
10
11
12
        Nokogiri::XML(resource["4165/stories?limit=10&filter=state%3Astarted"].get).xpath('//story').collect do |story|
          {
            :name => story.at('name'),
            :owner => story.at('owned_by'),
            :created_at => story.at('created_at'),
            :description => story.at('description'),
            :url => story.at('url'),
            :type => story.at('story_type')
            :notes => story.at('notes').collect { |note| { :note => { :text => note.at('text').content, :created_at => note.at('noted_at').content } } } unless story.at('notes').nil?
            
          }
        end