Class: Killbill::Plugin::Model::CurrencyConversionException
- Defined in:
- lib/killbill/gen/api/currency_conversion_exception.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
Returns the value of attribute cause.
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize ⇒ CurrencyConversionException
constructor
A new instance of CurrencyConversionException.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ CurrencyConversionException
Returns a new instance of CurrencyConversionException.
37 38 |
# File 'lib/killbill/gen/api/currency_conversion_exception.rb', line 37 def initialize() end |
Instance Attribute Details
#cause ⇒ Object
Returns the value of attribute cause.
35 36 37 |
# File 'lib/killbill/gen/api/currency_conversion_exception.rb', line 35 def cause @cause end |
#code ⇒ Object
Returns the value of attribute code.
35 36 37 |
# File 'lib/killbill/gen/api/currency_conversion_exception.rb', line 35 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
35 36 37 |
# File 'lib/killbill/gen/api/currency_conversion_exception.rb', line 35 def @message end |
Instance Method Details
#to_java ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/killbill/gen/api/currency_conversion_exception.rb', line 40 def to_java() # conversion for message [type = java.lang.String] @message = @message.to_s unless @message.nil? # conversion for cause [type = java.lang.Throwable] @cause = @cause.to_s unless cause.nil? # conversion for code [type = int] @code = @code Java::org.killbill.billing.currency.api.CurrencyConversionException.new(@message, @cause, @code) end |
#to_ruby(j_obj) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/killbill/gen/api/currency_conversion_exception.rb', line 52 def to_ruby(j_obj) # conversion for message [type = java.lang.String] @message = j_obj. # conversion for cause [type = java.lang.Throwable] @cause = j_obj.cause @cause = @cause.to_s unless @cause.nil? # conversion for code [type = int] @code = j_obj.code self end |