Sha256: 7c871088a1a422b7af074344153a6b49733f0bc3bc59d428346b10ab085aab51

Contents?: true

Size: 623 Bytes

Versions: 6

Compression:

Stored size: 623 Bytes

Contents

require 'vedeu/models/model'
require 'vedeu/presentation/presentation'

module Vedeu

  class ModelTestClass

    include Vedeu::Model
    include Vedeu::Presentation

    attr_accessor :background, :colour, :name, :style

    def initialize(attributes = {})
      @attributes = defaults.merge(attributes)

      @colour = @attributes[:colour]
      @name   = @attributes[:name]
      @style  = @attributes[:style]
      @repository = Vedeu::RepositoryTestModule
    end

    private

    def defaults
      {
        colour: {},
        name:   '',
        style:  [],
      }
    end

  end # ModelTestClass

end # Vedeu

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.3.5 test/support/helpers/model_test_class.rb
vedeu-0.3.4 test/support/helpers/model_test_class.rb
vedeu-0.3.3 test/support/helpers/model_test_class.rb
vedeu-0.3.2 test/support/helpers/model_test_class.rb
vedeu-0.3.1 test/support/helpers/model_test_class.rb
vedeu-0.3.0 test/support/helpers/model_test_class.rb