Sha256: da54ab87d2e36b406bc9bf8f7fc35aa4b42994aff2f0f96c504fb6c03092fb2d

Contents?: true

Size: 770 Bytes

Versions: 13

Compression:

Stored size: 770 Bytes

Contents

require_relative 'test_model'
require_relative 'test_enum'

class TestClassWithAttributes
  include Riveter::Attributes

  attr_string :string, :default => 'A'
  attr_text :text, :default => 'b'
  attr_integer :integer, :default => 1
  attr_decimal :decimal, :default => 9.998
  attr_date :date, :default => Date.new(2010, 1, 12)
  attr_date_range :date_range, :default => Date.new(2010, 1, 12)..Date.new(2011, 1, 12)
  attr_time :time, :default => Time.new(2010, 1, 12, 14, 56)
  attr_boolean :boolean, :default => true
  attr_enum :enum, TestEnum, :default => TestEnum::Member1
  attr_array :array, :default => [1, 2, 3]
  attr_hash :hash, :default => {:a => :b}
  attr_model :model, TestModel, :default => TestModel
  attr_object :object, :default => 'whatever'

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
riveter-0.3.0 spec/support/test_class_with_attributes.rb
riveter-0.2.1 spec/support/test_class_with_attributes.rb
riveter-0.2.0 spec/support/test_class_with_attributes.rb
riveter-0.1.1 spec/support/test_class_with_attributes.rb
riveter-0.0.15 spec/support/test_class_with_attributes.rb
riveter-0.0.14 spec/support/test_class_with_attributes.rb
riveter-0.0.13 spec/support/test_class_with_attributes.rb
riveter-0.0.12 spec/support/test_class_with_attributes.rb
riveter-0.0.11 spec/support/test_class_with_attributes.rb
riveter-0.0.10 spec/support/test_class_with_attributes.rb
riveter-0.0.9 spec/support/test_class_with_attributes.rb
riveter-0.0.8 spec/support/test_class_with_attributes.rb
riveter-0.0.7 spec/support/test_class_with_attributes.rb