Class: Playit::Services::Governance
- Inherits:
-
Object
- Object
- Playit::Services::Governance
- Defined in:
- lib/playit/services/governance.rb
Class Method Summary collapse
- .start ⇒ Object
- .stop ⇒ Object
-
.topics ⇒ Object
Display the governance topics.
Class Method Details
.start ⇒ Object
9 10 11 |
# File 'lib/playit/services/governance.rb', line 9 def start puts '[INFO] Start governance...' end |
.stop ⇒ Object
13 14 15 |
# File 'lib/playit/services/governance.rb', line 13 def stop puts '[INFO] Stop governance...' end |
.topics ⇒ Object
Display the governance topics
20 21 22 23 24 25 26 27 28 |
# File 'lib/playit/services/governance.rb', line 20 def topics puts '[INFO] Getting topics...' url = "#{Playit.config.attributes["governance"]}/getTopics" open(url) { |f| f.each_line { |line| puts line } } end |