Exception: PopbillException

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

Overview

Popbill API Exception Handler class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ PopbillException

Returns a new instance of PopbillException.



439
440
441
442
# File 'lib/popbill.rb', line 439

def initialize(code, message)
  @code = code
  @message = message
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



437
438
439
# File 'lib/popbill.rb', line 437

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



437
438
439
# File 'lib/popbill.rb', line 437

def message
  @message
end