Exception: ZenSend::ZenSendException
- Inherits:
-
Exception
- Object
- Exception
- ZenSend::ZenSendException
- Defined in:
- lib/zensend/zensend_exception.rb
Instance Attribute Summary collapse
-
#cost_in_pence ⇒ Object
readonly
Returns the value of attribute cost_in_pence.
-
#failcode ⇒ Object
readonly
Returns the value of attribute failcode.
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
-
#new_balance_in_pence ⇒ Object
readonly
Returns the value of attribute new_balance_in_pence.
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
Instance Method Summary collapse
-
#initialize(http_code, failcode, parameter, cost_in_pence, new_balance_in_pence) ⇒ ZenSendException
constructor
A new instance of ZenSendException.
Constructor Details
#initialize(http_code, failcode, parameter, cost_in_pence, new_balance_in_pence) ⇒ ZenSendException
Returns a new instance of ZenSendException.
5 6 7 8 9 10 11 |
# File 'lib/zensend/zensend_exception.rb', line 5 def initialize(http_code, failcode, parameter, cost_in_pence, new_balance_in_pence) @http_code = http_code @failcode = failcode @parameter = parameter @cost_in_pence = cost_in_pence @new_balance_in_pence = new_balance_in_pence end |
Instance Attribute Details
#cost_in_pence ⇒ Object (readonly)
Returns the value of attribute cost_in_pence.
3 4 5 |
# File 'lib/zensend/zensend_exception.rb', line 3 def cost_in_pence @cost_in_pence end |
#failcode ⇒ Object (readonly)
Returns the value of attribute failcode.
3 4 5 |
# File 'lib/zensend/zensend_exception.rb', line 3 def failcode @failcode end |
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
3 4 5 |
# File 'lib/zensend/zensend_exception.rb', line 3 def http_code @http_code end |
#new_balance_in_pence ⇒ Object (readonly)
Returns the value of attribute new_balance_in_pence.
3 4 5 |
# File 'lib/zensend/zensend_exception.rb', line 3 def new_balance_in_pence @new_balance_in_pence end |
#parameter ⇒ Object (readonly)
Returns the value of attribute parameter.
3 4 5 |
# File 'lib/zensend/zensend_exception.rb', line 3 def parameter @parameter end |