Class: Hockey::CrashReason

Inherits:
Object
  • Object
show all
Defined in:
lib/hockeyhelper/crash_reason.rb

Overview

CrashReason on HockeyApp

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hashobj, networking) ⇒ CrashReason

Returns a new instance of CrashReason


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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

Instance Attribute Details

#app_idObject (readonly)

Returns the value of attribute app_id


7
8
9
# File 'lib/hockeyhelper/crash_reason.rb', line 7

def app_id
  @app_id
end

#app_version_idObject (readonly)

Returns the value of attribute app_version_id


8
9
10
# File 'lib/hockeyhelper/crash_reason.rb', line 8

def app_version_id
  @app_version_id
end

#bundle_short_versionObject (readonly)

Returns the value of attribute bundle_short_version


13
14
15
# File 'lib/hockeyhelper/crash_reason.rb', line 13

def bundle_short_version
  @bundle_short_version
end

#bundle_versionObject (readonly)

Returns the value of attribute bundle_version


14
15
16
# File 'lib/hockeyhelper/crash_reason.rb', line 14

def bundle_version
  @bundle_version
end

#crash_classObject (readonly)

Returns the value of attribute crash_class


18
19
20
# File 'lib/hockeyhelper/crash_reason.rb', line 18

def crash_class
  @crash_class
end

#crash_methodObject (readonly)

Returns the value of attribute crash_method


19
20
21
# File 'lib/hockeyhelper/crash_reason.rb', line 19

def crash_method
  @crash_method
end

#created_atObject (readonly)

Returns the value of attribute created_at


10
11
12
# File 'lib/hockeyhelper/crash_reason.rb', line 10

def created_at
  @created_at
end

#fileObject (readonly)

Returns the value of attribute file


17
18
19
# File 'lib/hockeyhelper/crash_reason.rb', line 17

def file
  @file
end

#fixedObject (readonly)

Returns the value of attribute fixed


16
17
18
# File 'lib/hockeyhelper/crash_reason.rb', line 16

def fixed
  @fixed
end

#idObject (readonly)

Returns the value of attribute id


6
7
8
# File 'lib/hockeyhelper/crash_reason.rb', line 6

def id
  @id
end

#last_crash_atObject (readonly)

Returns the value of attribute last_crash_at


12
13
14
# File 'lib/hockeyhelper/crash_reason.rb', line 12

def last_crash_at
  @last_crash_at
end

#lineObject (readonly)

Returns the value of attribute line


20
21
22
# File 'lib/hockeyhelper/crash_reason.rb', line 20

def line
  @line
end

#netObject (readonly)

Returns the value of attribute net


24
25
26
# File 'lib/hockeyhelper/crash_reason.rb', line 24

def net
  @net
end

#number_of_crashesObject (readonly)

Returns the value of attribute number_of_crashes


9
10
11
# File 'lib/hockeyhelper/crash_reason.rb', line 9

def number_of_crashes
  @number_of_crashes
end

#original_hashObject (readonly)

Returns the value of attribute original_hash


22
23
24
# File 'lib/hockeyhelper/crash_reason.rb', line 22

def original_hash
  @original_hash
end

#reasonObject (readonly)

Returns the value of attribute reason


21
22
23
# File 'lib/hockeyhelper/crash_reason.rb', line 21

def reason
  @reason
end

#statusObject (readonly)

Returns the value of attribute status


15
16
17
# File 'lib/hockeyhelper/crash_reason.rb', line 15

def status
  @status
end

#updated_atObject (readonly)

Returns the value of attribute updated_at


11
12
13
# File 'lib/hockeyhelper/crash_reason.rb', line 11

def updated_at
  @updated_at
end

Class Method Details

.create_from(hashobj, networking) ⇒ Object


26
27
28
# File 'lib/hockeyhelper/crash_reason.rb', line 26

def self.create_from(hashobj, networking)
  self.new hashobj, networking
end

Instance Method Details

#inspectObject Also known as: to_s


51
52
53
# File 'lib/hockeyhelper/crash_reason.rb', line 51

def inspect
  "#<#{self.class}:#{'0x%08x' % self.hash} #{@id}, #{@file}, #{@crash_class}, #{@crash_method}, #{@line}>"
end