3 4 5
# File 'lib/midna/channel.rb', line 3 def self.all Midna.get("/channels.xml").to_hash["channels"] end
7 8 9
# File 'lib/midna/channel.rb', line 7 def self.find(code) Midna.get("/channels/#{code}.xml").to_hash["channel"] end