Class: Newly::Feed
- Inherits:
-
Object
- Object
- Newly::Feed
- Defined in:
- lib/newly/feed.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
readonly
Returns the value of attribute container.
-
#favicon ⇒ Object
readonly
Returns the value of attribute favicon.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#image_source ⇒ Object
readonly
Returns the value of attribute image_source.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#subtitle ⇒ Object
readonly
Returns the value of attribute subtitle.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url_pattern ⇒ Object
readonly
Returns the value of attribute url_pattern.
Instance Method Summary collapse
-
#initialize(args) ⇒ Feed
constructor
A new instance of Feed.
Constructor Details
#initialize(args) ⇒ Feed
Returns a new instance of Feed.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/newly/feed.rb', line 8 def initialize(args) @container = args[:container] @url_pattern = args[:url_pattern] @title = args[:title] @subtitle = args[:subtitle] @image_source = args[:image_source] @favicon = args[:favicon] @host = args[:host] @limit = args[:limit] end |
Instance Attribute Details
#container ⇒ Object (readonly)
Returns the value of attribute container.
6 7 8 |
# File 'lib/newly/feed.rb', line 6 def container @container end |
#favicon ⇒ Object (readonly)
Returns the value of attribute favicon.
6 7 8 |
# File 'lib/newly/feed.rb', line 6 def favicon @favicon end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
6 7 8 |
# File 'lib/newly/feed.rb', line 6 def host @host end |
#image_source ⇒ Object (readonly)
Returns the value of attribute image_source.
6 7 8 |
# File 'lib/newly/feed.rb', line 6 def image_source @image_source end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
6 7 8 |
# File 'lib/newly/feed.rb', line 6 def limit @limit end |
#subtitle ⇒ Object (readonly)
Returns the value of attribute subtitle.
6 7 8 |
# File 'lib/newly/feed.rb', line 6 def subtitle @subtitle end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'lib/newly/feed.rb', line 6 def title @title end |
#url_pattern ⇒ Object (readonly)
Returns the value of attribute url_pattern.
6 7 8 |
# File 'lib/newly/feed.rb', line 6 def url_pattern @url_pattern end |