Class: Killbill::Plugin::Model::RolledUpUnit
- Defined in:
- lib/killbill/gen/api/rolled_up_unit.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#unit_type ⇒ Object
Returns the value of attribute unit_type.
Instance Method Summary collapse
-
#initialize ⇒ RolledUpUnit
constructor
A new instance of RolledUpUnit.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ RolledUpUnit
Returns a new instance of RolledUpUnit.
39 40 |
# File 'lib/killbill/gen/api/rolled_up_unit.rb', line 39 def initialize() end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
37 38 39 |
# File 'lib/killbill/gen/api/rolled_up_unit.rb', line 37 def amount @amount end |
#unit_type ⇒ Object
Returns the value of attribute unit_type.
37 38 39 |
# File 'lib/killbill/gen/api/rolled_up_unit.rb', line 37 def unit_type @unit_type end |
Instance Method Details
#to_java ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/killbill/gen/api/rolled_up_unit.rb', line 42 def to_java() # conversion for unit_type [type = java.lang.String] @unit_type = @unit_type.to_s unless @unit_type.nil? # conversion for amount [type = java.lang.Long] @amount = @amount self end |
#to_ruby(j_obj) ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'lib/killbill/gen/api/rolled_up_unit.rb', line 51 def to_ruby(j_obj) # conversion for unit_type [type = java.lang.String] @unit_type = j_obj.unit_type # conversion for amount [type = java.lang.Long] @amount = j_obj.amount self end |