Class: PeatioAPI::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/peatio_api/config.rb

Class Method Summary collapse

Class Method Details

.get_peatiorc(path) ⇒ Object



4
5
6
7
8
9
# File 'lib/peatio_api/config.rb', line 4

def self.get_peatiorc(path)
  if File.exist? path
    lines = File.readlines path
    [ lines[0].strip, lines[1].strip ]
  end
end