Class: Rmd::Server
- Inherits:
-
Object
- Object
- Rmd::Server
- Defined in:
- lib/rmd/server.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config) ⇒ Server
constructor
A new instance of Server.
- #master ⇒ Object
- #nginx ⇒ Object
- #token ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(config) ⇒ Server
Returns a new instance of Server.
15 16 17 |
# File 'lib/rmd/server.rb', line 15 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
13 14 15 |
# File 'lib/rmd/server.rb', line 13 def config @config end |
Class Method Details
Instance Method Details
#master ⇒ Object
27 28 29 |
# File 'lib/rmd/server.rb', line 27 def master @config['master'] end |
#nginx ⇒ Object
31 32 33 |
# File 'lib/rmd/server.rb', line 31 def nginx @config['nginx'] end |
#token ⇒ Object
23 24 25 |
# File 'lib/rmd/server.rb', line 23 def token @config['token'] end |
#url ⇒ Object
19 20 21 |
# File 'lib/rmd/server.rb', line 19 def url @config['url'] end |