Class: Killbill::Plugin::Model::Case
- Defined in:
- lib/killbill/gen/api/case.rb
Instance Attribute Summary collapse
-
#billing_period ⇒ Object
Returns the value of attribute billing_period.
-
#price_list ⇒ Object
Returns the value of attribute price_list.
-
#product ⇒ Object
Returns the value of attribute product.
-
#product_category ⇒ Object
Returns the value of attribute product_category.
Instance Method Summary collapse
-
#initialize ⇒ Case
constructor
A new instance of Case.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ Case
Returns a new instance of Case.
39 40 |
# File 'lib/killbill/gen/api/case.rb', line 39 def initialize() end |
Instance Attribute Details
#billing_period ⇒ Object
Returns the value of attribute billing_period.
37 38 39 |
# File 'lib/killbill/gen/api/case.rb', line 37 def billing_period @billing_period end |
#price_list ⇒ Object
Returns the value of attribute price_list.
37 38 39 |
# File 'lib/killbill/gen/api/case.rb', line 37 def price_list @price_list end |
#product ⇒ Object
Returns the value of attribute product.
37 38 39 |
# File 'lib/killbill/gen/api/case.rb', line 37 def product @product end |
#product_category ⇒ Object
Returns the value of attribute product_category.
37 38 39 |
# File 'lib/killbill/gen/api/case.rb', line 37 def product_category @product_category end |
Instance Method Details
#to_java ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/killbill/gen/api/case.rb', line 42 def to_java() # conversion for product [type = org.killbill.billing.catalog.api.Product] @product = @product.to_java unless @product.nil? # conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory] @product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @product_category.to_s ) unless @product_category.nil? # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @billing_period.to_s ) unless @billing_period.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
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/killbill/gen/api/case.rb', line 57 def to_ruby(j_obj) # conversion for product [type = org.killbill.billing.catalog.api.Product] @product = j_obj.product @product = Killbill::Plugin::Model::Product.new.to_ruby(@product) unless @product.nil? # conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory] @product_category = j_obj.product_category @product_category = @product_category.to_s.to_sym unless @product_category.nil? # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @billing_period = j_obj.billing_period @billing_period = @billing_period.to_s.to_sym unless @billing_period.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 |