class Phonocast::Client
Attributes
channel[RW]
Public Class Methods
new(opts={})
click to toggle source
# File lib/phonocast/client.rb, line 11 def initialize(opts={}) configuration(opts) end
Public Instance Methods
configuration=(opts={})
click to toggle source
# File lib/phonocast/client.rb, line 19 def configuration=(opts={}) @configuration = Phonocast::Configuration.new(opts) end
create_feed()
click to toggle source
# File lib/phonocast/client.rb, line 34 def create_feed File.open(channel.rss_path, "w") do |f| f.write(channel.rss.to_s) end end
setup_yaml()
click to toggle source
# File lib/phonocast/client.rb, line 28 def setup_yaml File.open('phonocast.yaml', 'w') do |f| f.write(Phonocast::Configuration::DEFAULTS.to_yaml) end end