Sha256: 7065c257533e340a02cf2efcca9cd7e04e6863ddcdadbc2fe009b10fa678c9d9

Contents?: true

Size: 410 Bytes

Versions: 10

Compression:

Stored size: 410 Bytes

Contents

require "virtus"

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

      attribute :path, String
      attribute :start_position
      attribute :end_position

      def to_hash
        {
          path: path,
          positions: {
            begin: start_position.to_hash,
            end: end_position.to_hash
          }
        }
      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/position.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/position.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/position.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/position.rb
codeclimate-engine-rb-0.4.1 lib/cc_engine/location/position.rb
codeclimate-engine-rb-0.4.0 lib/cc_engine/location/position.rb
codeclimate-engine-rb-0.3.1 lib/cc_engine/location/position.rb
codeclimate-engine-rb-0.3.0 lib/cc_engine/location/position.rb
codeclimate-engine-rb-0.2.0 lib/cc_engine/location/position.rb
codeclimate-engine-rb-0.1.0 lib/cc_engine/location/position.rb