Sha256: b6649573b0fd3dfb3d974fea439340e77ffe6388813a0823bfe1b2ccb55ce4ae
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true module Platform module Objects class BlameRange < Platform::Objects::Base description "Represents a range of information from a Git blame." scopeless_tokens_as_minimum # Test multiline interfaces implements Interfaces::A implements Interfaces::B field :starting_line, Integer, description: "The starting line for the range", null: false def starting_line @object.lines.first[:lineno] end field :ending_line, Integer, description: "The ending line for the range", null: false def ending_line @object.lines.first[:lineno] + (@object.lines.length - 1) end field :commit, Objects::Commit, description: "Identifies the line author", null: false field :age, Integer, method: :scale, description: "Identifies the recency of the change, from 1 (new) to 10 (old). This is calculated as a 2-quantile and determines the length of distance between the median age of all the changes in the file and the recency of the current range's change.", null: false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-1.8.0.pre3 | spec/fixtures/upgrader/blame_range.transformed.rb |