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



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

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

#to_sObject



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

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