Sha256: 9ba94ce167bd7fe1cd9e5afff541f3aaf86d30dc007004336e5e21855e7c12e2

Contents?: true

Size: 363 Bytes

Versions: 11

Compression:

Stored size: 363 Bytes

Contents

module Attune
  MOCKS = {
    'Anonymous.create' => Proc.new{ {:id => SecureRandom.uuid } },
    'Entities.get_rankings' => Proc.new{ |body| { :ranking => body.ids.map(&:to_s) } },
    'Entities.batch_get_rankings' => Proc.new{ |body|
        { :results =>  body.requests.map {
            |params| { :ranking => params.ids.map(&:to_s) }
        } }
    }
  }
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
attune-1.0.16 lib/attune/mocks.rb
attune-1.0.15 lib/attune/mocks.rb
attune-1.0.14 lib/attune/mocks.rb
attune-1.0.13 lib/attune/mocks.rb
attune-1.0.12 lib/attune/mocks.rb
attune-1.0.11 lib/attune/mocks.rb
attune-1.0.10 lib/attune/mocks.rb
attune-1.0.9 lib/attune/mocks.rb
attune-1.0.8 lib/attune/mocks.rb
attune-1.0.7 lib/attune/mocks.rb
attune-1.0.6 lib/attune/mocks.rb