Exception: UptimeRobot::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Error

Returns a new instance of Error.



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

def initialize(json)
  @json = json
  super(json.inspect)
end

Instance Attribute Details

#jsonObject (readonly)

Returns the value of attribute json.



2
3
4
# File 'lib/uptimerobot/error.rb', line 2

def json
  @json
end