Class: BirdFeed::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/birdfeed/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Item

Returns a new instance of Item.

Yields:

  • (_self)

Yield Parameters:



5
6
7
# File 'lib/birdfeed/item.rb', line 5

def initialize(&block)
  yield self if block_given?
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



3
4
5
# File 'lib/birdfeed/item.rb', line 3

def author
  @author
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/birdfeed/item.rb', line 3

def description
  @description
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/birdfeed/item.rb', line 3

def id
  @id
end

Returns the value of attribute link.



3
4
5
# File 'lib/birdfeed/item.rb', line 3

def link
  @link
end

#nodeObject

Returns the value of attribute node.



3
4
5
# File 'lib/birdfeed/item.rb', line 3

def node
  @node
end

#published_atObject

Returns the value of attribute published_at.



3
4
5
# File 'lib/birdfeed/item.rb', line 3

def published_at
  @published_at
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/birdfeed/item.rb', line 3

def title
  @title
end

#xmlObject

Returns the value of attribute xml.



3
4
5
# File 'lib/birdfeed/item.rb', line 3

def xml
  @xml
end