Sha256: 68504a92f75342fca8f311e65970fe9140142a8b73dbda83726d3f0f45a250af
Contents?: true
Size: 387 Bytes
Versions: 3
Compression:
Stored size: 387 Bytes
Contents
class Ragoon::Client attr_reader :endpoint, :response def initialize(endpoint) @endpoint = endpoint end def request(action_name, body_node) @action_name = action_name @body_node = body_node @response = RestClient.post(endpoint, Ragoon::XML.render(action_name, body_node)) end def result_set @result_set ||= Nokogiri::XML.parse(response.body) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ragoon-0.1.2 | lib/ragoon/client.rb |
ragoon-0.1.1 | lib/ragoon/client.rb |
ragoon-0.1.0 | lib/ragoon/client.rb |