Sha256: 407dbf968f4f159fa2547508699aa7535156ef7b4507db5246bced516cfc524d

Contents?: true

Size: 458 Bytes

Versions: 25

Compression:

Stored size: 458 Bytes

Contents

module Xcov
  class Range

    attr_reader :execution_count
    attr_reader :location
    attr_reader :length

    def initialize(execution_count, location, length)
      @execution_count = execution_count
      @location = location
      @length = length
    end

    # Class methods

    def self.map(dictionary)
      Range.new(
        dictionary["executionCount"],
        dictionary["location"],
        dictionary["length"]
      )
    end

  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
xcov-1.8.1 lib/xcov/model/range.rb
xcov-1.8.0 lib/xcov/model/range.rb
xcov-1.7.5 lib/xcov/model/range.rb
xcov-1.7.4 lib/xcov/model/range.rb
xcov-1.7.3 lib/xcov/model/range.rb
xcov-1.7.2 lib/xcov/model/range.rb
xcov-1.7.1 lib/xcov/model/range.rb
xcov-1.7.0 lib/xcov/model/range.rb
xcov-1.6.0 lib/xcov/model/range.rb
xcov-1.5.1 lib/xcov/model/range.rb
xcov-1.5.0 lib/xcov/model/range.rb
xcov-1.4.3 lib/xcov/model/range.rb
xcov-1.4.2 lib/xcov/model/range.rb
xcov-1.4.1 lib/xcov/model/range.rb
xcov-1.4.0 lib/xcov/model/range.rb
xcov-1.3.5 lib/xcov/model/range.rb
xcov-1.3.4 lib/xcov/model/range.rb
xcov-1.3.3 lib/xcov/model/range.rb
xcov-1.3.2 lib/xcov/model/range.rb
xcov-1.3.1 lib/xcov/model/range.rb