Sha256: 943115b34a6517a728f4922facafa8e08831674924542a27ecfb430b25a00cbd

Contents?: true

Size: 186 Bytes

Versions: 11

Compression:

Stored size: 186 Bytes

Contents

class User
  include Dry::Equalizer(:id, :name, :email)

  attr_reader :id, :name, :email

  def initialize(attrs)
    @id, @name, @email = attrs.values_at(:id, :name, :email)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rom-rails-2.3.1 spec/dummy/app/models/user.rb
rom-rails-2.3.0 spec/dummy/app/models/user.rb
rom-rails-2.2.0 spec/dummy/app/models/user.rb
rom-rails-2.0.0 spec/dummy/app/models/user.rb
rom-rails-1.2.0 spec/dummy/app/models/user.rb
rom-rails-1.1.1 spec/dummy/app/models/user.rb
rom-rails-1.1.0 spec/dummy/app/models/user.rb
rom-rails-1.0.1 spec/dummy/app/models/user.rb
rom-rails-1.0.0 spec/dummy/app/models/user.rb
rom-rails-1.0.0.rc1 spec/dummy/app/models/user.rb
rom-rails-1.0.0.beta1 spec/dummy/app/models/user.rb