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



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

def body
    @payload['body']
end

#closed_atObject



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

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

#created_atObject



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

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

#idObject



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

def id
    @payload['id']
end

#lockedObject



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

def locked
    @payload['locked']
end

#numberObject



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

def number
    @payload['number']
end

#stateObject



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

def state
    @payload['state']
end

#titleObject



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

def title
    @payload['title']
end

#updated_atObject



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

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

#urlObject



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

def url
    @payload['url']
end

#userObject



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

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