Sha256: 664b48395396df0d033e3c116c7b5c4bee88c1bdcb245eaec0f34ab48ccef438
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
module Katapaty class Configuration attr_accessor :username, :password, :host, :port, :block_username, :block_password, :block_host, :block_port, :ssl def counterparty_url return 'http://rpc:1234@public.coindaddy.io:14000/api/' unless @host "#{protocol}://#{@username}:#{@password}@#{@host}:#{@port}/api/" end def counterblock_url return 'http://rpc:1234@public.coindaddy.io:14100/api/' unless @block_host "#{protocol}://#{@block_username}:#{@block_password}@#{@block_host}:#{@block_port}/api/" end private def protocol @ssl ? 'https' : 'http' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katapaty-1.0.2 | lib/katapaty/configuration.rb |