Sha256: a811b1c6100b9b688428391b67fa10c3be0d5f641c62d4887833c8472073c6d9

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

class TestBaseModel
  attr_accessor :column_values

  def initialize
    @column_values = {}
  end

  def read_attribute(column_name)
    @column_values[column_name.to_sym]
  end

  def write_attribute(column_name, value)
    @column_values[column_name.to_sym] = value
  end

  def self.where(options = {})
    @@where_options = options
  end

  def self.where_options
    @@where_options
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
attr_enum_accessor-1.0.1 test/test_base_model.rb
attr_enum_accessor-1.0.0 test/test_base_model.rb