Exception: StatusCake::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/statuscake/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/statuscake/error.rb', line 4

def initialize(json)
  @json = json
  super(json['Error'])
end

Instance Attribute Details

#jsonObject (readonly)

Returns the value of attribute json.



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

def json
  @json
end

Instance Method Details

#err_noObject



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

def err_no
  json['ErrNo'].to_i
end