Sha256: 4fda9bbf1e04f3de2fe46643d8326cfe0892669328bceb6543059171ef295d2d

Contents?: true

Size: 744 Bytes

Versions: 22

Compression:

Stored size: 744 Bytes

Contents

class AuthToken
  class << self
    def kunimom
      @@kunimom ||= CityGrid.login(
        :username => 'kunimom',
        :password => 'pppppp'
      ).authToken
    end
    
    def dou
      @@dou ||= CityGrid.login(
        :username => 'doushen2',
        :password => 'abcd1234'
      ).authToken
    end
    
    def sales_coord
      @@sales_cord ||= CityGrid.login(
        :username => 'QASalesCoord',
        :password => 'pppppp'
      ).authToken
    end
    
    def gary_test
      @@gary_test ||= CityGrid.login(
        :username => 'GARYTEST',
        :password => 'pppppp'
      ).authToken
    end
    
    def rand_number
      @@rand_number ||= rand(10000000)
    end
    
    def generate
      kunimom
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
citygrid_api-0.0.28 test/auth_token.rb
citygrid_api-0.0.27 test/auth_token.rb
citygrid_api-0.0.26 test/auth_token.rb
citygrid_api-0.0.25 test/auth_token.rb
citygrid_api-0.0.24 test/auth_token.rb
citygrid_api-0.0.23 test/auth_token.rb
citygrid_api-0.0.22 test/auth_token.rb
citygrid_api-0.0.21 test/auth_token.rb
citygrid_api-0.0.20 test/auth_token.rb
citygrid_api-0.0.19 test/auth_token.rb
citygrid_api-0.0.18 test/auth_token.rb
citygrid_api-0.0.17 test/auth_token.rb
citygrid_api-0.0.16 test/auth_token.rb
citygrid_api-0.0.15 test/auth_token.rb
citygrid_api-0.0.14 test/auth_token.rb
citygrid_api-0.0.13 test/auth_token.rb
citygrid_api-0.0.12 test/auth_token.rb
citygrid_api-0.0.11 test/auth_token.rb
citygrid_api-0.0.10 test/auth_token.rb
citygrid_api-0.0.9 test/auth_token.rb