lib/green-button-data/parser/entry.rb in green-button-data-0.1.1 vs lib/green-button-data/parser/entry.rb in green-button-data-0.1.2

- old
+ new

@@ -10,11 +10,11 @@ @entry_id ||= @self end element :link, as: :up, value: :href, with: { rel: 'up' } element :link, as: :self, value: :href, with: { rel: 'self' } - element :link, as: :related, value: :href, with: { rel: 'related' } + elements :link, as: :related, value: :href, with: { rel: 'related' } element :content, class: Content, as: :content # Published Date element :published @@ -36,10 +36,10 @@ # Handle PG&E namespacing element :'ns1:id', as: :entry_id element :'ns1:link', as: :up, value: :href, with: { rel: 'up' } element :'ns1:link', as: :self, value: :href, with: { rel: 'self' } - element :'ns1:link', as: :related, value: :href, with: { rel: 'related' } + elements :'ns1:link', as: :related, value: :href, with: { rel: 'related' } element :'ns1:content', class: Content, as: :content element :'ns1:published', as: :published element :'ns1:updated', as: :updated end end