Class: MNSTimeline
- Inherits:
-
SPSSub
- Object
- SPSSub
- MNSTimeline
- Defined in:
- lib/mns_timeline.rb
Instance Method Summary collapse
-
#initialize(timeline: 'notices', host: 'sps', port: 59000, dir: '.', options: {}) ⇒ MNSTimeline
constructor
A new instance of MNSTimeline.
- #subscribe(topic = 'timeline/add') ⇒ Object
Constructor Details
#initialize(timeline: 'notices', host: 'sps', port: 59000, dir: '.', options: {}) ⇒ MNSTimeline
Returns a new instance of MNSTimeline.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/mns_timeline.rb', line 14 def initialize(timeline: 'notices', host: 'sps', port: 59000, dir: '.', options: {}) # note: a valid url_base must be provided = { url_base: 'http://yourwebsitehere.co.uk/', dx_xslt: '/xsl/dynarex.xsl', rss_xslt: '/xsl/feed.xsl', target_page: :page, target_xslt: '/xsl/page.xsl' }.merge() super(host: host, port: port) @filepath = dir @timeline = timeline end |
Instance Method Details
#subscribe(topic = 'timeline/add') ⇒ Object
32 33 34 |
# File 'lib/mns_timeline.rb', line 32 def subscribe(topic='timeline/add') super(topic) end |