Sha256: 363a6f11e41b9c048a53e7c50cf435b087aaaffb76a0ec840964fd6970a0f77e

Contents?: true

Size: 408 Bytes

Versions: 4

Compression:

Stored size: 408 Bytes

Contents

class User < ActiveRecord::Base
  attr_reader :updated, :destroyed
  attr_accessor :name, :id

  def initialize
    @updated = false
    @destroyed = false
    super
  end

  def self.all
    [new, new]
  end

  def self.find(id)
    new
  end

  def self.create(params)
    new
  end

  def update_attributes(params)
    @updated = true
    true
  end

  def destroy
    @destroyed = true
    true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zertico-2.0.0.beta.1 spec/fake_app/app/interfaces/user.rb
zertico-2.0.0.alpha.3 spec/fake_app/app/interfaces/user.rb
zertico-2.0.0.alpha.2 spec/fake_app/app/interfaces/user.rb
zertico-2.0.0.alpha.1 spec/fake_app/app/interfaces/user.rb