Class: Jasmine::Headless::ReportMessage::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/headless/report_message/error.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, file_info) ⇒ Error

Returns a new instance of Error.



11
12
13
# File 'lib/jasmine/headless/report_message/error.rb', line 11

def initialize(message, file_info)
  @message, @file_info = message, file_info
end

Instance Attribute Details

#file_infoObject (readonly)

Returns the value of attribute file_info.



9
10
11
# File 'lib/jasmine/headless/report_message/error.rb', line 9

def file_info
  @file_info
end

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'lib/jasmine/headless/report_message/error.rb', line 9

def message
  @message
end

Class Method Details

.new_from_parts(parts) ⇒ Object



4
5
6
# File 'lib/jasmine/headless/report_message/error.rb', line 4

def new_from_parts(parts)
  new(*parts)
end

Instance Method Details

#==(other) ⇒ Object



15
16
17
# File 'lib/jasmine/headless/report_message/error.rb', line 15

def ==(other)
  self.message == other.message && self.file_info == other.file_info
end