Sha256: 35b977c53889d7ff244f5a0b018b62035a551d83e7ac6d05dd9b3e0a14ce5888

Contents?: true

Size: 528 Bytes

Versions: 11

Compression:

Stored size: 528 Bytes

Contents

module ExvoAuth::Autonomous::Http
  def get(*args)
    http.get(*args)
  end

  def post(*args)
    http.post(*args)
  end

  def put(*args)
    http.put(*args)
  end

  def delete(*args)
    http.delete(*args)
  end

  def head(*args)
    http.head(*args)
  end

  def options(*args)
    http.options(*args)
  end
  
  protected
  
  def http
    basement.base_uri(base_uri)
    basement.basic_auth(username, password)
    basement
  end
  
  def basement
    @basement ||= Class.new do
      include HTTParty
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
exvo-auth-0.7.14 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.13 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.12 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.11 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.10 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.9 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.8 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.7 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.6 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.5 lib/exvo_auth/autonomous/http.rb
exvo-auth-0.7.4 lib/exvo_auth/autonomous/http.rb