Class: Newly::Feed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#containerObject (readonly)

Returns the value of attribute container.



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

def container
  @container
end

#faviconObject (readonly)

Returns the value of attribute favicon.



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

def favicon
  @favicon
end

#hostObject (readonly)

Returns the value of attribute host.



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

def host
  @host
end

#image_sourceObject (readonly)

Returns the value of attribute image_source.



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

def image_source
  @image_source
end

#limitObject (readonly)

Returns the value of attribute limit.



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

def limit
  @limit
end

#subtitleObject (readonly)

Returns the value of attribute subtitle.



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

def subtitle
  @subtitle
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end

#url_patternObject (readonly)

Returns the value of attribute url_pattern.



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

def url_pattern
  @url_pattern
end