Sha256: 4510da86249555cb40c8ab0f969983f9ed3f629c766a2041a99996aaf8e3d0e9
Contents?: true
Size: 470 Bytes
Versions: 5
Compression:
Stored size: 470 Bytes
Contents
class Ragoon::Client attr_reader :endpoint, :response def initialize(endpoint, options) @endpoint = endpoint @options = options 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, @options)) end def result_set @result_set ||= Nokogiri::XML.parse(response.body) end def reset @result_set = nil end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ragoon-1.0.0 | lib/ragoon/client.rb |
ragoon-0.8.1 | lib/ragoon/client.rb |
ragoon-0.8.0 | lib/ragoon/client.rb |
ragoon-0.7.0 | lib/ragoon/client.rb |
ragoon-0.6.0 | lib/ragoon/client.rb |