Class: RSS::Maker::RSS20::Channel::Cloud

Inherits:
RSS::Maker::RSS09::Channel::Cloud show all
Defined in:
lib/rss/maker/2.0.rb

Instance Method Summary collapse

Instance Method Details

#have_required_values?Boolean

Returns:

  • (Boolean)


44
45
46
47
# File 'lib/rss/maker/2.0.rb', line 44

def have_required_values?
  @domain and @port and @path and
    @registerProcedure and @protocol
end

#to_rss(rss, channel) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/rss/maker/2.0.rb', line 35

def to_rss(rss, channel)
  cloud = Rss::Channel::Cloud.new
  set = setup_values(cloud)
  if set
    channel.cloud = cloud
    setup_other_elements(rss)
  end
end