Class: Rubytter

Inherits:
Object
  • Object
show all
Defined in:
lib/rtlog/archives.rb

Instance Method Summary collapse

Instance Method Details

#create_request(req, basic_auth = true) ⇒ Object



13
14
15
16
17
# File 'lib/rtlog/archives.rb', line 13

def create_request(req, basic_auth = true)
  @header.each {|k, v| req.add_field(k, v) }
  req.basic_auth(@login, @password) if @login && @password
  req
end