Exception: ZenSend::ZenSendException

Inherits:
Exception
  • Object
show all
Defined in:
lib/zensend/zensend_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_penceObject (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

#failcodeObject (readonly)

Returns the value of attribute failcode.



3
4
5
# File 'lib/zensend/zensend_exception.rb', line 3

def failcode
  @failcode
end

#http_codeObject (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_penceObject (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

#parameterObject (readonly)

Returns the value of attribute parameter.



3
4
5
# File 'lib/zensend/zensend_exception.rb', line 3

def parameter
  @parameter
end