Sha256: b8c66c1e9709e90604893360f92d2187a91628d9b5514c2be02d0f124d4afaa9
Contents?: true
Size: 428 Bytes
Versions: 12
Compression:
Stored size: 428 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 def reset @result_set = nil end end
Version data entries
12 entries across 12 versions & 1 rubygems