Class: Killbill::Plugin::Model::RolledUpUnit

Inherits:
Object
  • Object
show all
Defined in:
lib/killbill/gen/api/rolled_up_unit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRolledUpUnit

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

#amountObject

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_typeObject

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_javaObject



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