Class: Crep::Crash

Inherits:
Object
  • Object
show all
Defined in:
lib/crep/model/crash_model/crash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_line:, occurrences:, reason:, crash_class:, registered_at:, deep_link:, url:) ⇒ Crash

Returns a new instance of Crash


7
8
9
10
11
12
13
14
15
# File 'lib/crep/model/crash_model/crash.rb', line 7

def initialize(file_line:, occurrences:, reason:, crash_class:, registered_at:, deep_link:, url:)
  @file_line = file_line
  @occurrences = occurrences
  @reason = reason
  @crash_class = crash_class
  @registered_at = registered_at
  @deep_link = deep_link
  @url = url
end

Instance Attribute Details

#crash_classObject (readonly)

Returns the value of attribute crash_class


5
6
7
# File 'lib/crep/model/crash_model/crash.rb', line 5

def crash_class
  @crash_class
end

Returns the value of attribute deep_link


5
6
7
# File 'lib/crep/model/crash_model/crash.rb', line 5

def deep_link
  @deep_link
end

#file_lineObject (readonly)

Returns the value of attribute file_line


5
6
7
# File 'lib/crep/model/crash_model/crash.rb', line 5

def file_line
  @file_line
end

#occurrencesObject (readonly)

Returns the value of attribute occurrences


5
6
7
# File 'lib/crep/model/crash_model/crash.rb', line 5

def occurrences
  @occurrences
end

#reasonObject (readonly)

Returns the value of attribute reason


5
6
7
# File 'lib/crep/model/crash_model/crash.rb', line 5

def reason
  @reason
end

#registered_atObject (readonly)

Returns the value of attribute registered_at


5
6
7
# File 'lib/crep/model/crash_model/crash.rb', line 5

def registered_at
  @registered_at
end

#urlObject (readonly)

Returns the value of attribute url


5
6
7
# File 'lib/crep/model/crash_model/crash.rb', line 5

def url
  @url
end