Class: GHArchive::BasicIssue

Inherits:
Entity
  • Object
show all
Defined in:
lib/gh-archive/entities.rb

Direct Known Subclasses

Issue, PullRequest

Instance Method Summary collapse

Methods inherited from Entity

#initialize

Constructor Details

This class inherits a constructor from GHArchive::Entity

Instance Method Details

#bodyObject



93
94
95
# File 'lib/gh-archive/entities.rb', line 93

def body
    @payload['body']
end

#closed_atObject



109
110
111
# File 'lib/gh-archive/entities.rb', line 109

def closed_at
    Time.parse(@payload['closed_at']) rescue nil
end

#created_atObject



101
102
103
# File 'lib/gh-archive/entities.rb', line 101

def created_at
    Time.parse(@payload['created_at'])
end

#idObject



73
74
75
# File 'lib/gh-archive/entities.rb', line 73

def id
    @payload['id']
end

#lockedObject



85
86
87
# File 'lib/gh-archive/entities.rb', line 85

def locked
    @payload['locked']
end

#numberObject



77
78
79
# File 'lib/gh-archive/entities.rb', line 77

def number
    @payload['number']
end

#stateObject



81
82
83
# File 'lib/gh-archive/entities.rb', line 81

def state
    @payload['state']
end

#titleObject



89
90
91
# File 'lib/gh-archive/entities.rb', line 89

def title
    @payload['title']
end

#updated_atObject



105
106
107
# File 'lib/gh-archive/entities.rb', line 105

def updated_at
    Time.parse(@payload['updated_at']) rescue nil
end

#urlObject



69
70
71
# File 'lib/gh-archive/entities.rb', line 69

def url
    @payload['url']
end

#userObject



97
98
99
# File 'lib/gh-archive/entities.rb', line 97

def user
    User.new(@payload['user']) rescue nil
end