Class: Killbill::Plugin::Model::Listing
- Defined in:
- lib/killbill/gen/api/listing.rb
Instance Attribute Summary collapse
-
#plan ⇒ Object
Returns the value of attribute plan.
-
#price_list ⇒ Object
Returns the value of attribute price_list.
Instance Method Summary collapse
-
#initialize ⇒ Listing
constructor
A new instance of Listing.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ Listing
Returns a new instance of Listing.
39 40 |
# File 'lib/killbill/gen/api/listing.rb', line 39 def initialize() end |
Instance Attribute Details
#plan ⇒ Object
Returns the value of attribute plan.
37 38 39 |
# File 'lib/killbill/gen/api/listing.rb', line 37 def plan @plan end |
#price_list ⇒ Object
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_java ⇒ Object
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 |