Sha256: 83829463280afe23ac7dc81243457606c2ac8f0b0f2d765f987ffa4a0c1ac543

Contents?: true

Size: 642 Bytes

Versions: 1

Compression:

Stored size: 642 Bytes

Contents

module SodaXmlTeam

  require 'httparty'
  require 'nokogiri'
  
  class Client
    
    attr_accessor :auth

    def initialize(username, password)
      self.auth = {:username => username, :password => password}
    end
    
    def get_listing(options={})
      response = HTTParty.get(SodaXmlTeam::Address.build("get_listing", options), :basic_auth => self.auth, :verify => false)
      Nokogiri::XML(response.body)
    end

    def get_document(options={})
      response = HTTParty.get(SodaXmlTeam::Address.build("get_document", options), :basic_auth => self.auth, :verify => false)
      Nokogiri::XML(response.body)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soda_xml_team-1.0.1 lib/soda_xml_team/client.rb