Class: Killbill::Plugin::Model::EntitlementSpecifier
- Defined in:
- lib/killbill/gen/api/entitlement_specifier.rb
Instance Attribute Summary collapse
-
#bill_cycle_day ⇒ Object
Returns the value of attribute bill_cycle_day.
-
#overrides ⇒ Object
Returns the value of attribute overrides.
-
#plan_phase_specifier ⇒ Object
Returns the value of attribute plan_phase_specifier.
Instance Method Summary collapse
-
#initialize ⇒ EntitlementSpecifier
constructor
A new instance of EntitlementSpecifier.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ EntitlementSpecifier
Returns a new instance of EntitlementSpecifier.
39 40 |
# File 'lib/killbill/gen/api/entitlement_specifier.rb', line 39 def initialize() end |
Instance Attribute Details
#bill_cycle_day ⇒ Object
Returns the value of attribute bill_cycle_day.
37 38 39 |
# File 'lib/killbill/gen/api/entitlement_specifier.rb', line 37 def bill_cycle_day @bill_cycle_day end |
#overrides ⇒ Object
Returns the value of attribute overrides.
37 38 39 |
# File 'lib/killbill/gen/api/entitlement_specifier.rb', line 37 def overrides @overrides end |
#plan_phase_specifier ⇒ Object
Returns the value of attribute plan_phase_specifier.
37 38 39 |
# File 'lib/killbill/gen/api/entitlement_specifier.rb', line 37 def plan_phase_specifier @plan_phase_specifier end |
Instance Method Details
#to_java ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/killbill/gen/api/entitlement_specifier.rb', line 42 def to_java() # conversion for plan_phase_specifier [type = org.killbill.billing.catalog.api.PlanPhaseSpecifier] @plan_phase_specifier = @plan_phase_specifier.to_java unless @plan_phase_specifier.nil? # conversion for bill_cycle_day [type = java.lang.Integer] @bill_cycle_day = @bill_cycle_day # conversion for overrides [type = java.util.List] tmp = java.util.ArrayList.new (@overrides || []).each do |m| # conversion for m [type = org.killbill.billing.catalog.api.PlanPhasePriceOverride] m = m.to_java unless m.nil? tmp.add(m) end @overrides = tmp self end |
#to_ruby(j_obj) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/killbill/gen/api/entitlement_specifier.rb', line 60 def to_ruby(j_obj) # conversion for plan_phase_specifier [type = org.killbill.billing.catalog.api.PlanPhaseSpecifier] @plan_phase_specifier = j_obj.plan_phase_specifier @plan_phase_specifier = Killbill::Plugin::Model::PlanPhaseSpecifier.new.to_ruby(@plan_phase_specifier) unless @plan_phase_specifier.nil? # conversion for bill_cycle_day [type = java.lang.Integer] @bill_cycle_day = j_obj.bill_cycle_day # conversion for overrides [type = java.util.List] @overrides = j_obj.overrides tmp = [] (@overrides || []).each do |m| # conversion for m [type = org.killbill.billing.catalog.api.PlanPhasePriceOverride] m = Killbill::Plugin::Model::PlanPhasePriceOverride.new.to_ruby(m) unless m.nil? tmp << m end @overrides = tmp self end |