Class: Feediscovery::Feed
- Inherits:
-
Object
- Object
- Feediscovery::Feed
- Defined in:
- lib/feediscovery.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#rel ⇒ Object
readonly
Returns the value of attribute rel.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Feed
constructor
A new instance of Feed.
Constructor Details
#initialize(params = {}) ⇒ Feed
Returns a new instance of Feed.
6 7 8 9 10 11 |
# File 'lib/feediscovery.rb', line 6 def initialize(params = {}) @href = params["href"] @title = params["title"] @rel = params["rel"] @type = params["type"] end |
Instance Attribute Details
#href ⇒ Object (readonly)
Returns the value of attribute href.
5 6 7 |
# File 'lib/feediscovery.rb', line 5 def href @href end |
#rel ⇒ Object (readonly)
Returns the value of attribute rel.
5 6 7 |
# File 'lib/feediscovery.rb', line 5 def rel @rel end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/feediscovery.rb', line 5 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/feediscovery.rb', line 5 def type @type end |