Sha256: 667486db78d65be52743b16b8fe691459067204e7ee3db32390565c94b668abf
Contents?: true
Size: 411 Bytes
Versions: 48
Compression:
Stored size: 411 Bytes
Contents
module Danger class Comment attr_reader :id, :body def initialize(id, body) @id = id @body = body end def self.from_github(comment) self.new(comment["id"], comment["body"]) end def self.from_gitlab(comment) self.new(comment.id, comment.body) end def generated_by_danger?(danger_id) body.include?("generated_by_#{danger_id}") end end end
Version data entries
48 entries across 48 versions & 1 rubygems