Sha256: d42004b94349d69f0a9197291ebf9c48ea65e714d51fa5d009831d1bd4d2bc73

Contents?: true

Size: 270 Bytes

Versions: 16

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

class Store
  include Arstotzka

  expose :customers, klass: Customer, after: :filter_adults

  def initialize(json)
    @json = json
  end

  private

  attr_reader :json

  def filter_adults(values)
    values.select(&:adult?)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
arstotzka-1.6.2 spec/support/models/store.rb
arstotzka-1.6.1 spec/support/models/store.rb
arstotzka-1.6.0 spec/support/models/store.rb
arstotzka-1.5.0 spec/support/models/store.rb
arstotzka-1.4.4 spec/support/models/store.rb
arstotzka-1.4.3 spec/support/models/store.rb
arstotzka-1.4.2 spec/support/models/store.rb
arstotzka-1.4.1 spec/support/models/store.rb
arstotzka-1.4.0 spec/support/models/store.rb
arstotzka-1.3.2 spec/support/models/store.rb
arstotzka-1.3.1 spec/support/models/store.rb
arstotzka-1.3.0 spec/support/models/store.rb
arstotzka-1.2.4 spec/support/models/store.rb
arstotzka-1.2.3 spec/support/models/store.rb
arstotzka-1.2.2 spec/support/models/store.rb
arstotzka-1.2.1 spec/support/models/store.rb