Sha256: d8931d488393bc3b0793477444acb3ee3f633eeff7026a1a58d2a135bb187fbd
Contents?: true
Size: 424 Bytes
Versions: 4
Compression:
Stored size: 424 Bytes
Contents
module Rmd class Server class << self def all Configure.get['server'].keys end def get(name) Server.new(Configure.get['server'][name]) end end attr_reader :config def initialize(config) @config = config end def url @config['url'] end def token @config['token'] end def master @config['master'] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rmdd-0.1.3 | lib/rmd/server.rb |
rmdd-0.1.2 | lib/rmd/server.rb |
rmdd-0.1.1 | lib/rmd/server.rb |
rmdd-0.1.0 | lib/rmd/server.rb |