Sha256: e129b4bf40a973fb7c571cd34a9875b011b4923044cca32d76a144eadcce49df

Contents?: true

Size: 621 Bytes

Versions: 8

Compression:

Stored size: 621 Bytes

Contents

# -*- encoding : utf-8 -*-
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

8 entries across 8 versions & 1 rubygems

Version Path
exchange-1.2.2 lib/exchange/external_api/json.rb
exchange-1.2.1 lib/exchange/external_api/json.rb
exchange-1.2.0 lib/exchange/external_api/json.rb
exchange-1.1.1 lib/exchange/external_api/json.rb
exchange-1.1.0 lib/exchange/external_api/json.rb
exchange-1.0.4 lib/exchange/external_api/json.rb
exchange-1.0.2 lib/exchange/external_api/json.rb
exchange-1.0.0 lib/exchange/external_api/json.rb