Sha256: 665f21cbf1cc97fef66e1f50475929cad99bfdebf85f70673ea19cb7c1131358

Contents?: true

Size: 593 Bytes

Versions: 6

Compression:

Stored size: 593 Bytes

Contents

module Exchange
  module ExternalAPI
    
    # The json base class takes care of JSON apis. 
    # This may serve as a base for some operations which might be common to the json apis
    # @author Beat Richartz
    # @version 0.6
    # @since 0.6
    #
    class Json < Base
      
      # Initializer, essentially takes the arguments passed to initialization, loads json on the way
      # and passes the arguments to the api base
      #
      def initialize *args
        Exchange::GemLoader.new('json').try_load unless defined?(JSON)
        super *args
      end
      
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
exchange-0.12.0 lib/exchange/external_api/json.rb
exchange-0.11.0 lib/exchange/external_api/json.rb
exchange-0.10.2 lib/exchange/external_api/json.rb
exchange-0.10.1 lib/exchange/external_api/json.rb
exchange-0.10.0 lib/exchange/external_api/json.rb
exchange-0.9.0 lib/exchange/external_api/json.rb