Class: Midna::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/midna/channel.rb

Class Method Summary collapse

Class Method Details

.allObject



3
4
5
# File 'lib/midna/channel.rb', line 3

def self.all
  Midna.get("/channels.xml").to_hash["channels"]
end

.find(code) ⇒ Object



7
8
9
# File 'lib/midna/channel.rb', line 7

def self.find(code)
  Midna.get("/channels/#{code}.xml").to_hash["channel"]
end