Class: Issue::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/issue/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, msg) ⇒ Error

Initialize Issue::Error object with: status: html status code msg: message to send back in response



9
10
11
12
# File 'lib/issue/error.rb', line 9

def initialize(status, msg)
  @status = status
  @message = msg
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/issue/error.rb', line 4

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/issue/error.rb', line 3

def status
  @status
end