class Hockey::CrashReason

CrashReason on HockeyApp

Attributes

app_id[R]
app_version_id[R]
bundle_short_version[R]
bundle_version[R]
crash_class[R]
crash_method[R]
created_at[R]
file[R]
fixed[R]
id[R]
last_crash_at[R]
line[R]
net[R]
number_of_crashes[R]
original_hash[R]
reason[R]
status[R]
updated_at[R]

Public Class Methods

create_from(hashobj, networking) click to toggle source
# File lib/hockeyhelper/crash_reason.rb, line 26
def self.create_from(hashobj, networking)
  self.new hashobj, networking
end
new(hashobj, networking) click to toggle source
# File lib/hockeyhelper/crash_reason.rb, line 30
def initialize(hashobj, networking)
  @id = hashobj['id']
  @app_id = hashobj['app_id']
  @app_version_id = hashobj['app_version_id']
  @number_of_crashes = hashobj['number_of_crashes']
  @created_at = hashobj['created_at']
  @updated_at = hashobj['updated_at']
  @last_crash_at = hashobj['last_crash_at']
  @bundle_short_version = hashobj['bundle_short_version']
  @bundle_version = hashobj['bundle_version']
  @status = hashobj['status']
  @fixed = hashobj['fixed']
  @file = hashobj['file']
  @crash_class = hashobj['class']
  @crash_method = hashobj['method']
  @line = hashobj['line']
  @reason = hashobj['reason']
  @original_hash = hashobj
  @net = networking
end

Public Instance Methods

inspect() click to toggle source
# File lib/hockeyhelper/crash_reason.rb, line 51
def inspect
  "#<#{self.class}:#{'0x%08x' % self.hash} #{@id}, #{@file}, #{@crash_class}, #{@crash_method}, #{@line}>"
end
Also aliased as: to_s
to_s()
Alias for: inspect