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

Version Path
ragoon-0.5.2 lib/ragoon/client.rb
ragoon-0.5.1 lib/ragoon/client.rb
ragoon-0.5.0 lib/ragoon/client.rb
ragoon-0.4.3 lib/ragoon/client.rb
ragoon-0.4.2 lib/ragoon/client.rb
ragoon-0.4.1 lib/ragoon/client.rb
ragoon-0.4.0 lib/ragoon/client.rb
ragoon-0.3.1 lib/ragoon/client.rb
ragoon-0.3.0 lib/ragoon/client.rb
ragoon-0.2.2 lib/ragoon/client.rb
ragoon-0.2.1 lib/ragoon/client.rb
ragoon-0.2.0 lib/ragoon/client.rb