class ActiveBugzilla::Flag

Attributes

active[R]
active?[R]
bug_id[R]
created_on[R]
id[R]
name[R]
setter[R]
status[R]
type_id[R]
updated_on[R]

Public Class Methods

instantiate_from_raw_data(data, bug_id = nil) click to toggle source
# File lib/active_bugzilla/flag.rb, line 18
def self.instantiate_from_raw_data(data, bug_id = nil)
  data.collect { |hash| new(hash.merge('bug_id' => bug_id)) }
end
new(attributes) click to toggle source
# File lib/active_bugzilla/flag.rb, line 6
def initialize(attributes)
  @id         = attributes['id']
  @bug_id     = attributes['bug_id']
  @type_id    = attributes['type_id']
  @created_on = normalize_timestamp(attributes['creation_date'])
  @updated_on = normalize_timestamp(attributes['modification_date'])
  @status     = attributes['status']
  @name       = attributes['name']
  @setter     = attributes['setter']
  @active     = attributes['is_active']
end