Sha256: 6752f096a3d3f6ebe8042663c53f197fc08143a570295c13cbd2ddb9eb85c4d7

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

module Attune
  MOCKS = {
    'Anonymous.create' => Proc.new{ |body| {: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

5 entries across 5 versions & 1 rubygems

Version Path
attune-1.0.21 lib/attune/mocks.rb
attune-1.0.20 lib/attune/mocks.rb
attune-1.0.19 lib/attune/mocks.rb
attune-1.0.18 lib/attune/mocks.rb
attune-1.0.17 lib/attune/mocks.rb