Class: Staccato::Adapter::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/staccato/adapter/http.rb

Overview

The Ruby HTTP Library Adapter

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ HTTP

Returns a new instance of HTTP.


4
5
6
# File 'lib/staccato/adapter/http.rb', line 4

def initialize(uri)
  @uri = uri
end

Instance Method Details

#post(params) ⇒ Object


8
9
10
# File 'lib/staccato/adapter/http.rb', line 8

def post(params)
  ::HTTP.post(@uri, :form => params)
end