Class: Killbill::Plugin::Model::PlanSpecifier
- Defined in:
- lib/killbill/gen/api/plan_specifier.rb
Instance Attribute Summary collapse
-
#billing_period ⇒ Object
Returns the value of attribute billing_period.
-
#plan_name ⇒ Object
Returns the value of attribute plan_name.
-
#price_list_name ⇒ Object
Returns the value of attribute price_list_name.
-
#product_name ⇒ Object
Returns the value of attribute product_name.
Instance Method Summary collapse
-
#initialize ⇒ PlanSpecifier
constructor
A new instance of PlanSpecifier.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ PlanSpecifier
Returns a new instance of PlanSpecifier.
37 38 |
# File 'lib/killbill/gen/api/plan_specifier.rb', line 37 def initialize() end |
Instance Attribute Details
#billing_period ⇒ Object
Returns the value of attribute billing_period.
35 36 37 |
# File 'lib/killbill/gen/api/plan_specifier.rb', line 35 def billing_period @billing_period end |
#plan_name ⇒ Object
Returns the value of attribute plan_name.
35 36 37 |
# File 'lib/killbill/gen/api/plan_specifier.rb', line 35 def plan_name @plan_name end |
#price_list_name ⇒ Object
Returns the value of attribute price_list_name.
35 36 37 |
# File 'lib/killbill/gen/api/plan_specifier.rb', line 35 def price_list_name @price_list_name end |
#product_name ⇒ Object
Returns the value of attribute product_name.
35 36 37 |
# File 'lib/killbill/gen/api/plan_specifier.rb', line 35 def product_name @product_name end |
Instance Method Details
#to_java ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/killbill/gen/api/plan_specifier.rb', line 40 def to_java() # conversion for plan_name [type = java.lang.String] @plan_name = @plan_name.to_s unless @plan_name.nil? # conversion for product_name [type = java.lang.String] @product_name = @product_name.to_s unless @product_name.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_name [type = java.lang.String] @price_list_name = @price_list_name.to_s unless @price_list_name.nil? Java::org.killbill.billing.catalog.api.PlanSpecifier.new(@plan_name, @product_name, @billing_period, @price_list_name) end |
#to_ruby(j_obj) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/killbill/gen/api/plan_specifier.rb', line 55 def to_ruby(j_obj) # conversion for plan_name [type = java.lang.String] @plan_name = j_obj.plan_name # conversion for product_name [type = java.lang.String] @product_name = j_obj.product_name # 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_name [type = java.lang.String] @price_list_name = j_obj.price_list_name self end |