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
93
94
95
|
# File 'lib/gh-archive/entities.rb', line 93
def body
@payload['body']
end
|
#closed_at ⇒ Object
109
110
111
|
# File 'lib/gh-archive/entities.rb', line 109
def closed_at
Time.parse(@payload['closed_at']) rescue nil
end
|
#created_at ⇒ Object
101
102
103
|
# File 'lib/gh-archive/entities.rb', line 101
def created_at
Time.parse(@payload['created_at'])
end
|
#id ⇒ Object
73
74
75
|
# File 'lib/gh-archive/entities.rb', line 73
def id
@payload['id']
end
|
#locked ⇒ Object
85
86
87
|
# File 'lib/gh-archive/entities.rb', line 85
def locked
@payload['locked']
end
|
#number ⇒ Object
77
78
79
|
# File 'lib/gh-archive/entities.rb', line 77
def number
@payload['number']
end
|
#state ⇒ Object
81
82
83
|
# File 'lib/gh-archive/entities.rb', line 81
def state
@payload['state']
end
|
#title ⇒ Object
89
90
91
|
# File 'lib/gh-archive/entities.rb', line 89
def title
@payload['title']
end
|
#updated_at ⇒ Object
105
106
107
|
# File 'lib/gh-archive/entities.rb', line 105
def updated_at
Time.parse(@payload['updated_at']) rescue nil
end
|
#url ⇒ Object
69
70
71
|
# File 'lib/gh-archive/entities.rb', line 69
def url
@payload['url']
end
|
#user ⇒ Object
97
98
99
|
# File 'lib/gh-archive/entities.rb', line 97
def user
User.new(@payload['user']) rescue nil
end
|