Class: Staccato::Adapter::HTTP
- Inherits:
-
Object
- Object
- Staccato::Adapter::HTTP
- Defined in:
- lib/staccato/adapter/http.rb
Overview
The Ruby HTTP Library Adapter
Instance Method Summary collapse
-
#initialize(uri) ⇒ HTTP
constructor
A new instance of HTTP.
- #post(params) ⇒ Object
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 |