Sha256: 3fd5284241648b074dc30a0bd47d9d77e67a991ecd186777f605977a58ee54f8

Contents?: true

Size: 306 Bytes

Versions: 12

Compression:

Stored size: 306 Bytes

Contents

module Vindetta
  class Vin
    class Vds
      attr_reader :value

      def initialize(vin)
        @vin = vin
      end

      def value
        @vin[3..7].join("")
      end

      alias eql? ==

      def ==(other)
        self.class == other.class && value == other.value
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vindetta-0.19.0 lib/vindetta/vin/vds.rb
vindetta-0.17.1 lib/vindetta/vin/vds.rb
vindetta-0.17.0 lib/vindetta/vin/vds.rb
vindetta-0.16.0 lib/vindetta/vin/vds.rb
vindetta-0.15.0 lib/vindetta/vin/vds.rb
vindetta-0.14.0 lib/vindetta/vin/vds.rb
vindetta-0.13.0 lib/vindetta/vin/vds.rb
vindetta-0.12.0 lib/vindetta/vin/vds.rb
vindetta-0.11.0 lib/vindetta/vin/vds.rb
vindetta-0.10.0 lib/vindetta/vin/vds.rb
vindetta-0.9.0 lib/vindetta/vin/vds.rb
vindetta-0.8.0 lib/vindetta/vin/vds.rb