Sha256: c378357b8eb45c6954db9fac385ef00e82baffedff3456c7eeefa4db5b2aaf86

Contents?: true

Size: 839 Bytes

Versions: 7

Compression:

Stored size: 839 Bytes

Contents

require 'typhoeus'
require 'json'
require 'xmlsimple'

# The path to the lib directory.
SHELBY_ARENA_LIB_DIR = File.dirname(__FILE__)

require File.dirname(__FILE__) + '/auto_load.rb'

require File.dirname(__FILE__) + '/common.rb'

module ShelbyArena

  class Api

    class << self
      attr_reader :username, :password, :api_key, :api_secret, :service_url, :session_key
    end    

    def self.request_session(username, password, api_key, service_url)
      @username    = username
      @password    = password
      @api_key     = api_key   
      @service_url = service_url
      ShelbySession.new(ShelbyArena.request_session)
    end    

    def self.connect(session_key, api_secret, service_url)
      @session_key = session_key
      @api_secret  = api_secret   
      @service_url = service_url
      true
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shelby-arena-api-0.3.2 lib/shelby_arena.rb
shelby-arena-api-0.3.1 lib/shelby_arena.rb
shelby-arena-api-0.3.0 lib/shelby_arena.rb
shelby-arena-api-0.2.2 lib/shelby_arena.rb
shelby-arena-api-0.2.1 lib/shelby_arena.rb
shelby-arena-api-0.2.0 lib/shelby_arena.rb
shelby-arena-api-0.1.0 lib/shelby_arena.rb