Sha256: 64837a51cbfad4ca3f03bcf4b9ba8902218ca9ce15de982b4a6cdb31bb0cd4ac

Contents?: true

Size: 334 Bytes

Versions: 2

Compression:

Stored size: 334 Bytes

Contents

module DCA
  module Models
    class Position < BaseModel
      attr_accessor :checksum, :published_at

      validates_presence_of :base_id, :checksum

      def initialize(*args)
        # set instance variable id, need to place this attribute to hash, when id is not set.
        @id = nil
        super
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dca-0.1.1 lib/dca/models/position.rb
dca-0.1.0 lib/dca/models/position.rb