class GiactVerification::SandboxRequester

Constants

SANDBOX_URI

Attributes

body[R]
endpointable[R]

Public Class Methods

call(args) click to toggle source
# File lib/giact_verification/requests/sandbox_requester.rb, line 9
def self.call(args)
  new(args).call
end
new(args) click to toggle source
# File lib/giact_verification/requests/sandbox_requester.rb, line 13
def initialize(args)
  @endpointable = SANDBOX_URI
  @body         = args[:body]
end

Public Instance Methods

call() click to toggle source
# File lib/giact_verification/requests/sandbox_requester.rb, line 18
def call
  http = Net::HTTP.new(endpointable.host, endpointable.port)
  http.use_ssl = true

  response = http.post(endpointable.path, body, 'Content-Type' => 'text/xml')
end