class ActiveBugzilla::Comment
Attributes
bug_id[R]
count[R]
created_by[R]
created_on[R]
creator_id[R]
id[R]
private[R]
private?[R]
text[R]
updated_on[R]
Public Class Methods
instantiate_from_raw_data(data)
click to toggle source
# File lib/active_bugzilla/comment.rb, line 19 def self.instantiate_from_raw_data(data) data.sort_by(&:count).collect { |hash| new(hash) } end
new(attributes)
click to toggle source
# File lib/active_bugzilla/comment.rb, line 6 def initialize(attributes) @created_by = attributes['author'] @bug_id = attributes['bug_id'] @count = attributes['count'] @creator_id = attributes['creator_id'] @id = attributes['id'] @text = attributes['text'] @created_on = normalize_timestamp attributes['creation_time'] @updated_on = normalize_timestamp attributes['time'] @private = attributes['is_private'] end