Class: EFax::OutboundStatus

Inherits:
Request
  • Object
show all
Defined in:
lib/efax.rb

Class Method Summary collapse

Methods inherited from Request

account_id, account_id=, password, password=, user, user=

Class Method Details

.post(doc_id) ⇒ Object



162
163
164
165
166
167
168
# File 'lib/efax.rb', line 162

def self.post(doc_id)
  data = params(xml(doc_id))
  response = Net::HTTPS.start(EFax::Uri.host, EFax::Uri.port) do |https|
    https.post(EFax::Uri.path, data, EFax::HEADERS)
  end
  OutboundStatusResponse.new(response)
end