Class: Syndication::RSS::Cloud

Inherits:
Container show all
Defined in:
lib/syndication/rss.rb

Overview

The <cloud> element is very rarely used. It was added to the RSS standards to support the rssCloud protocol of Radio UserLand.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Container

#parse_date, #store, #store_category, #strip, #tag2method, #tag_end, #tag_start

Constructor Details

- (Cloud) initialize(parent, tag, attrs = nil)

Returns a new instance of Cloud



231
232
233
234
235
236
237
238
239
# File 'lib/syndication/rss.rb', line 231

def initialize(parent, tag, attrs = nil)
  @tag = tag
  @parent = parent
  if attrs
    attrs.each_pair {|key, value|
      self.store(key, value)
    }
  end
end

Instance Attribute Details

- (Object) domain

The hostname to connect to.



216
217
218
# File 'lib/syndication/rss.rb', line 216

def domain
  @domain
end

- (Object) path

The request path.



220
221
222
# File 'lib/syndication/rss.rb', line 220

def path
  @path
end

- (Object) port

The TCP/IP port number.



218
219
220
# File 'lib/syndication/rss.rb', line 218

def port
  @port
end

- (Object) protocol

The protocol to use.



224
225
226
# File 'lib/syndication/rss.rb', line 224

def protocol
  @protocol
end

- (Object) registerprocedure

The registration method.



222
223
224
# File 'lib/syndication/rss.rb', line 222

def registerprocedure
  @registerprocedure
end