Sha256: 5bb3329759ff7dccb8b2c7a34f3f06bd0b60c7fa6ca48aab6545a090bb0bbee6

Contents?: true

Size: 368 Bytes

Versions: 10

Compression:

Stored size: 368 Bytes

Contents

require "virtus"

module CCEngine
  module Location
    class LineRange
      include Virtus.model(strict: true)

      attribute :path, String
      attribute :line_range, Range

      def to_hash
        {
          path: path,
          lines: {
            begin: line_range.begin,
            end: line_range.end
          }
        }
      end
    end
  end
end

Version data entries

10 entries across 8 versions & 2 rubygems

Version Path
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/codeclimate-engine-rb-0.4.1/lib/cc_engine/location/line_range.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/codeclimate-engine-rb-0.4.1/lib/cc_engine/location/line_range.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/codeclimate-engine-rb-0.4.1/lib/cc_engine/location/line_range.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/codeclimate-engine-rb-0.4.1/lib/cc_engine/location/line_range.rb
codeclimate-engine-rb-0.4.1 lib/cc_engine/location/line_range.rb
codeclimate-engine-rb-0.4.0 lib/cc_engine/location/line_range.rb
codeclimate-engine-rb-0.3.1 lib/cc_engine/location/line_range.rb
codeclimate-engine-rb-0.3.0 lib/cc_engine/location/line_range.rb
codeclimate-engine-rb-0.2.0 lib/cc_engine/location/line_range.rb
codeclimate-engine-rb-0.1.0 lib/cc_engine/location/line_range.rb