Class: GHArchive::BasicIssue
- Inherits:
-
Entity
- Object
- Entity
- GHArchive::BasicIssue
show all
- Defined in:
- lib/gh-archive/entities.rb
Instance Method Summary
collapse
Methods inherited from Entity
#initialize
Instance Method Details
#body ⇒ Object
94
95
96
|
# File 'lib/gh-archive/entities.rb', line 94
def body
@payload['body']
end
|
#closed_at ⇒ Object
110
111
112
|
# File 'lib/gh-archive/entities.rb', line 110
def closed_at
Time.parse(@payload['closed_at']) rescue nil
end
|
#created_at ⇒ Object
102
103
104
|
# File 'lib/gh-archive/entities.rb', line 102
def created_at
Time.parse(@payload['created_at'])
end
|
#id ⇒ Object
74
75
76
|
# File 'lib/gh-archive/entities.rb', line 74
def id
@payload['id']
end
|
#locked ⇒ Object
86
87
88
|
# File 'lib/gh-archive/entities.rb', line 86
def locked
@payload['locked']
end
|
#number ⇒ Object
78
79
80
|
# File 'lib/gh-archive/entities.rb', line 78
def number
@payload['number']
end
|
#state ⇒ Object
82
83
84
|
# File 'lib/gh-archive/entities.rb', line 82
def state
@payload['state']
end
|
#title ⇒ Object
90
91
92
|
# File 'lib/gh-archive/entities.rb', line 90
def title
@payload['title']
end
|
#updated_at ⇒ Object
106
107
108
|
# File 'lib/gh-archive/entities.rb', line 106
def updated_at
Time.parse(@payload['updated_at']) rescue nil
end
|
#url ⇒ Object
70
71
72
|
# File 'lib/gh-archive/entities.rb', line 70
def url
@payload['url']
end
|
#user ⇒ Object
98
99
100
|
# File 'lib/gh-archive/entities.rb', line 98
def user
User.new(@payload['user']) rescue nil
end
|