Class: GithubSearch::Issue
- Defined in:
- lib/github-search/issue.rb
Instance Attribute Summary collapse
-
#assignee ⇒ Object
readonly
Returns the value of attribute assignee.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#closed_at ⇒ Object
readonly
Returns the value of attribute closed_at.
-
#comments ⇒ Object
readonly
Returns the value of attribute comments.
-
#comments_url ⇒ Object
readonly
Returns the value of attribute comments_url.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#events_url ⇒ Object
readonly
Returns the value of attribute events_url.
-
#html_url ⇒ Object
readonly
Returns the value of attribute html_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#labels_url ⇒ Object
readonly
Returns the value of attribute labels_url.
-
#locked ⇒ Object
readonly
Returns the value of attribute locked.
-
#milestone ⇒ Object
readonly
Returns the value of attribute milestone.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Issue
constructor
A new instance of Issue.
Methods inherited from Searcher
#issues, #repos, #search, #users
Constructor Details
#initialize(attributes) ⇒ Issue
Returns a new instance of Issue.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/github-search/issue.rb', line 27 def initialize(attributes) @id = attributes["id"] @number = attributes["number"] @title = attributes["title"] @body = attributes["body"] @url = attributes["url"] @labels_url = attributes["labels_url"] @comments_url = attributes["comments_url"] @events_url = attributes["events_url"] @html_url = attributes["html_url"] @user = attributes["user"] @labels = attributes["labels"] @state = attributes["state"] @locked = attributes["locked"] @assignee = attributes["assignee"] @milestone = attributes["milestone"] @comments = attributes["comments"] @created_at = attributes["created_at"] @updated_at = attributes["updated_at"] @closed_at = attributes["closed_at"] @score = attributes["score"] end |
Instance Attribute Details
#assignee ⇒ Object (readonly)
Returns the value of attribute assignee.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def assignee @assignee end |
#body ⇒ Object (readonly)
Returns the value of attribute body.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def body @body end |
#closed_at ⇒ Object (readonly)
Returns the value of attribute closed_at.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def closed_at @closed_at end |
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def comments @comments end |
#comments_url ⇒ Object (readonly)
Returns the value of attribute comments_url.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def comments_url @comments_url end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def created_at @created_at end |
#events_url ⇒ Object (readonly)
Returns the value of attribute events_url.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def events_url @events_url end |
#html_url ⇒ Object (readonly)
Returns the value of attribute html_url.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def html_url @html_url end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def id @id end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def labels @labels end |
#labels_url ⇒ Object (readonly)
Returns the value of attribute labels_url.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def labels_url @labels_url end |
#locked ⇒ Object (readonly)
Returns the value of attribute locked.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def locked @locked end |
#milestone ⇒ Object (readonly)
Returns the value of attribute milestone.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def milestone @milestone end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def number @number end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def score @score end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def state @state end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def title @title end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def updated_at @updated_at end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def url @url end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
6 7 8 |
# File 'lib/github-search/issue.rb', line 6 def user @user end |
Class Method Details
.sort_options ⇒ Object
50 51 52 |
# File 'lib/github-search/issue.rb', line 50 def self. [:comments, :created, :updated] end |