class Scrapers::NetrcReader
Attributes
pw[RW]
user[RW]
Public Class Methods
new(section)
click to toggle source
# File lib/netrc_reader.rb, line 7 def initialize(section) netrc = Netrc.read @user, @pw = netrc[section] rescue NoMethodError => e fail "Could not find credentials for #{section}" end