Class: Rubyists::Linear::Comment

Inherits:
Object
  • Object
show all
Includes:
SemanticLogger::Loggable
Defined in:
lib/linear/models/comment.rb

Overview

The Comment class represents a Linear issue comment.

Constant Summary collapse

Base =
fragment('BaseComment', 'Comment') do
  id
  body
  url
  user { ___ User.base_fragment }
  createdAt
  updatedAt
end

Instance Method Summary collapse

Instance Method Details

#inspectionObject



29
30
31
# File 'lib/linear/models/comment.rb', line 29

def inspection
  format('id: "%<id>s" url: "%<url>s"', id:, url:)
end

#to_sObject



25
26
27
# File 'lib/linear/models/comment.rb', line 25

def to_s
  format('%<id>-12s %<url>s', id:, url:)
end