| Class | RSS::Rss::Channel::Cloud |
| In: |
rss/0.9.rb
|
| Parent: | Element |
# File rss/0.9.rb, line 266 def initialize(domain=nil, port=nil, path=nil, rp=nil, protocol=nil) super() @domain = domain @port = port @path = path @registerProcedure = rp @protocol = protocol end
# File rss/0.9.rb, line 275 def to_s(convert=true, indent=calc_indent) next_indent = indent + INDENT rv = "\#{indent}<cloud\n\#{next_indent}domain=\"\#{h @domain}\"\n\#{next_indent}port=\"\#{h @port}\"\n\#{next_indent}path=\"\#{h @path}\"\n\#{next_indent}registerProcedure=\"\#{h @registerProcedure}\"\n\#{next_indent}protocol=\"\#{h @protocol}\"/>\n" rv = @converter.convert(rv) if convert and @converter rv end