Class: Garbanzo::Request
- Inherits:
-
Object
- Object
- Garbanzo::Request
- Defined in:
- lib/garbanzo/request.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(test_mode) ⇒ Request
constructor
A new instance of Request.
- #post(xml) ⇒ Object
Constructor Details
#initialize(test_mode) ⇒ Request
Returns a new instance of Request.
9 10 11 |
# File 'lib/garbanzo/request.rb', line 9 def initialize(test_mode) @test_mode = test_mode end |
Class Method Details
.post(xml, test_mode = true) ⇒ Object
5 6 7 |
# File 'lib/garbanzo/request.rb', line 5 def self.post(xml, test_mode = true) new(test_mode).post(xml).body end |