class GreenButtonData::Feed
Public Class Methods
fetch(url, options)
click to toggle source
# File lib/green-button-data/feed.rb, line 3 def self.fetch(url, options) block = block_given? ? Proc.new : nil conn = Faraday.new url, options, &block end
parse(xml)
click to toggle source
# File lib/green-button-data/feed.rb, line 8 def self.parse(xml) GreenButtonData::Parser::Feed.parse xml end