Sha256: 79a8383a82c215a7b72abaef203239d5b3234c99f35857f35362fa4457f3c71d
Contents?: true
Size: 863 Bytes
Versions: 4
Compression:
Stored size: 863 Bytes
Contents
require 'virtus' module JiraIssues class JiraIssue include Virtus.model attribute :key, String attribute :priority, String attribute :status, String attribute :type, String attribute :summary, String attribute :description, String attribute :assignee, String attribute :reporter, String attribute :created_date, DateTime attribute :closed_date, DateTime attribute :due_date, DateTime attribute :filter_status, String def to_json { key: issue.key, type: issue.issuetype.name, priority: issue.priority.name, status: status, description: i.description, summary: issue.summary, assignee: issue.assignee, reporter: issue.reporter, created_date: issue.created, closed_date: issue.resolutiondate, } end end end
Version data entries
4 entries across 4 versions & 1 rubygems