Sha256: a514a608d84ec32656eb031ad261ef230cb57d9f30d5427d6139801e77989bbf

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

require 'rubygems'
require 'httparty'
require 'json'

require 'currency_cloud/resource'
lib_path = File.join(File.dirname(__FILE__), '**/*.*')
Dir[lib_path].sort.each { |f| require f}

module CurrencyCloud
  class << self
     attr_accessor :environment, :login_id, :api_key, :token
  end
  
  def self.session
    @session ||= CurrencyCloud::Session.new(environment, login_id, api_key, token)
  end

  def self.close_session
    @session.close if @session
    true
  end
  
  def self.reset_session
    @session = nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
currency_cloud-0.5 lib/currency_cloud.rb