class SentrySummary::Issue

Attributes

count[R]
date[R]
id[R]
metadata[R]
title[R]

Public Class Methods

build(dto) click to toggle source
# File lib/sentry-summary/sentry.rb, line 131
def self.build(dto)
  Issue.new(dto[:id], dto[:title], dto[:lastSeen], dto[:metadata], dto[:count].to_i)
end
new(id, title, date, metadata, count) click to toggle source
# File lib/sentry-summary/sentry.rb, line 123
def initialize(id, title, date, metadata, count)
  @id = id
  @title = title
  @date = DateTime.parse(date).to_time
  @metadata = metadata
  @count = count
end