Class: Killbill::Plugin::Model::Listing

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeListing

Returns a new instance of Listing.



39
40
# File 'lib/killbill/gen/api/listing.rb', line 39

def initialize()
end

Instance Attribute Details

#planObject

Returns the value of attribute plan.



37
38
39
# File 'lib/killbill/gen/api/listing.rb', line 37

def plan
  @plan
end

#price_listObject

Returns the value of attribute price_list.



37
38
39
# File 'lib/killbill/gen/api/listing.rb', line 37

def price_list
  @price_list
end

Instance Method Details

#to_javaObject



42
43
44
45
46
47
48
49
# File 'lib/killbill/gen/api/listing.rb', line 42

def to_java()
  # conversion for plan [type = org.killbill.billing.catalog.api.Plan]
  @plan = @plan.to_java unless @plan.nil?

  # conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
  @price_list = @price_list.to_java unless @price_list.nil?
  self
end

#to_ruby(j_obj) ⇒ Object



51
52
53
54
55
56
57
58
59
60
# File 'lib/killbill/gen/api/listing.rb', line 51

def to_ruby(j_obj)
  # conversion for plan [type = org.killbill.billing.catalog.api.Plan]
  @plan = j_obj.plan
  @plan = Killbill::Plugin::Model::Plan.new.to_ruby(@plan) unless @plan.nil?

  # conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
  @price_list = j_obj.price_list
  @price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@price_list) unless @price_list.nil?
  self
end