Module: Brrr

Defined in:
lib/brrr.rb,
lib/brrr/item.rb,
lib/brrr/channel.rb,
lib/brrr/item/guid.rb,
lib/brrr/item/source.rb,
lib/brrr/feed/element.rb,
lib/brrr/channel/cloud.rb,
lib/brrr/channel/image.rb,
lib/brrr/item/enclosure.rb,
lib/brrr/channel/category.rb,
lib/brrr/channel/text_input.rb

Defined Under Namespace

Modules: Feed Classes: Channel, Item

Class Method Summary collapse

Class Method Details

.from_file(path) ⇒ Object



21
22
23
# File 'lib/brrr.rb', line 21

def self.from_file(path)
  File.open { |file| return Channel.new(file) }
end

.from_url(url) ⇒ Object



17
18
19
# File 'lib/brrr.rb', line 17

def self.from_url(url)
  URI.open(url) { |file| return Channel.new(file) }
end