Exception: Lunetas::Error::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Lunetas::Error::BaseError
show all
- Defined in:
- lib/lunetas/error.rb
Instance Method Summary
collapse
Instance Method Details
#code ⇒ Object
6
7
8
|
# File 'lib/lunetas/error.rb', line 6
def code
400
end
|
#message ⇒ Object
9
10
11
|
# File 'lib/lunetas/error.rb', line 9
def message
"Error"
end
|
#to_json ⇒ Object
3
4
5
|
# File 'lib/lunetas/error.rb', line 3
def to_json
{'error' => message}.to_json
end
|
#to_s ⇒ Object
12
13
14
|
# File 'lib/lunetas/error.rb', line 12
def to_s
message
end
|