Sha256: 0aed97b73bf0dfba70e9c4687e488444b9d195ec1f320fe34a2796bfc96b5d24

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 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_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

4 entries across 4 versions & 1 rubygems

Version Path
riveter-0.0.6 spec/support/test_class_with_attributes.rb
riveter-0.0.5 spec/support/test_class_with_attributes.rb
riveter-0.0.4 spec/support/test_class_with_attributes.rb
riveter-0.0.3 spec/support/test_class_with_attributes.rb