Class: FootStats::ErrorResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/foot_stats/error_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ErrorResponse

Returns a new instance of ErrorResponse.



5
6
7
# File 'lib/foot_stats/error_response.rb', line 5

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/foot_stats/error_response.rb', line 3

def message
  @message
end

Instance Method Details

#==(other) ⇒ Object



9
10
11
# File 'lib/foot_stats/error_response.rb', line 9

def ==(other)
  @message == other.message
end