Sha256: 744be0ea02aa53d95f22fe842627afd5b253a7270244eb215da43f0d92e5658f

Contents?: true

Size: 535 Bytes

Versions: 9

Compression:

Stored size: 535 Bytes

Contents

def new_network(player_id = "1000001")
  new_network_with_options({}, player_id)
end

def new_network_with_options(opts={}, player_id = "1000001")
  config = YAML.load_file(File.expand_path("../../../../fontana_sample/config/app_garden.yml", __FILE__))
  opts = {
    device_type_cd: 1,
    client_version: "2013073101",
    consumer_secret: config["consumer_secret"],
    player_id: player_id,
    # ssl_disabled: true,
    url: "http://localhost:4000",
  }.update(opts)
  url = opts.delete(:url)
  Libgss::Network.new(url, opts)
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
libgss-0.11.0 spec/support/auto/network.rb
libgss-0.10.0 spec/support/auto/network.rb
libgss-0.9.0 spec/support/auto/network.rb
libgss-0.8.4 spec/support/auto/network.rb
libgss-0.8.3 spec/support/auto/network.rb
libgss-0.8.2 spec/support/auto/network.rb
libgss-0.8.1 spec/support/auto/network.rb
libgss-0.8.0 spec/support/auto/network.rb
libgss-0.7.6 spec/support/auto/network.rb