Sha256: a5a80c2c256fb5676a4e058dda5d3e77d4b3638e816bcbf8639e8c278afbb8f5

Contents?: true

Size: 681 Bytes

Versions: 8

Compression:

Stored size: 681 Bytes

Contents

module Exchange
  module ExternalAPI
    
    # The xml base class takes care of XML apis. It assumes you would want to use nokogiri as a parser and preloads the gem
    # Also, this may serve as a base for some operations which might be common to the xml apis
    # @author Beat Richartz
    # @version 0.6
    # @since 0.6
    #
    class XML < Base
      
      # Initializer, essentially takes the arguments passed to initialization, loads nokogiri on the way
      # and passes the arguments to the api base
      #
      def initialize *args
        Exchange::GemLoader.new('nokogiri').try_load unless defined?(Nokogiri)
        super *args
      end
      
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
exchange-0.12.0 lib/exchange/external_api/xml.rb
exchange-0.11.0 lib/exchange/external_api/xml.rb
exchange-0.10.2 lib/exchange/external_api/xml.rb
exchange-0.10.1 lib/exchange/external_api/xml.rb
exchange-0.10.0 lib/exchange/external_api/xml.rb
exchange-0.9.0 lib/exchange/external_api/xml.rb
exchange-0.8.0 lib/exchange/external_api/xml.rb
exchange-0.6.0 lib/exchange/external_api/xml.rb