Class: Fed::Feed::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/fed/feed/base.rb

Direct Known Subclasses

Atom, Rss1, Rss2

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/fed/feed/base.rb', line 6

def initialize(doc)
  @document = doc
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/fed/feed/base.rb', line 4

def description
  @description
end

#documentObject (readonly)

Returns the value of attribute document.



4
5
6
# File 'lib/fed/feed/base.rb', line 4

def document
  @document
end

#entriesObject (readonly)

Returns the value of attribute entries.



4
5
6
# File 'lib/fed/feed/base.rb', line 4

def entries
  @entries
end

#guidObject (readonly)

Returns the value of attribute guid.



4
5
6
# File 'lib/fed/feed/base.rb', line 4

def guid
  @guid
end

Returns the value of attribute link.



4
5
6
# File 'lib/fed/feed/base.rb', line 4

def link
  @link
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/fed/feed/base.rb', line 4

def title
  @title
end

#updatedObject (readonly)

Returns the value of attribute updated.



4
5
6
# File 'lib/fed/feed/base.rb', line 4

def updated
  @updated
end