class Pra::PullRequest
Attributes
assignee[RW]
from_reference[RW]
labels[RW]
link[RW]
repository[RW]
service_id[RW]
title[RW]
to_reference[RW]
updated_at[RW]
Public Class Methods
new(attributes={})
click to toggle source
# File lib/pra/pull_request.rb, line 8 def initialize(attributes={}) @title = attributes[:title] @from_reference = attributes[:from_reference] @to_reference = attributes[:to_reference] @author = attributes[:author] @assignee = attributes[:assignee] @link = attributes[:link] @service_id = attributes[:service_id] @repository = attributes[:repository] @labels = attributes[:labels] || [] @updated_at = DateTime.parse(attributes[:updated_at]) unless attributes[:updated_at].nil? end