Sha256: 644b3743e5a5cf944f61c7fd2c82c84b7d8277ff0b99cf621e34abfd1de5f684

Contents?: true

Size: 235 Bytes

Versions: 5

Compression:

Stored size: 235 Bytes

Contents

require "json"

class BazMapper < Alephant::Publisher::Request::DataMapper
  def data
    (1..3).reduce({}) do |accum, _index|
      accum.merge(
        JSON.parse(
          get("/test/call").body
        )
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alephant-preview-0.5.3 spec/fixtures/components/baz/mapper.rb
alephant-preview-0.5.2 spec/fixtures/components/baz/mapper.rb
alephant-preview-0.5.1 spec/fixtures/components/baz/mapper.rb
alephant-preview-0.5.0 spec/fixtures/components/baz/mapper.rb
alephant-preview-0.4.0 spec/fixtures/components/baz/mapper.rb