Class: Killbill::Plugin::Model::PlanPhasePriceOverridesWithCallContext
- Defined in:
- lib/killbill/gen/api/plan_phase_price_overrides_with_call_context.rb
Instance Attribute Summary collapse
-
#call_context ⇒ Object
Returns the value of attribute call_context.
-
#overrides ⇒ Object
Returns the value of attribute overrides.
Instance Method Summary collapse
-
#initialize ⇒ PlanPhasePriceOverridesWithCallContext
constructor
A new instance of PlanPhasePriceOverridesWithCallContext.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ PlanPhasePriceOverridesWithCallContext
Returns a new instance of PlanPhasePriceOverridesWithCallContext.
39 40 |
# File 'lib/killbill/gen/api/plan_phase_price_overrides_with_call_context.rb', line 39 def initialize() end |
Instance Attribute Details
#call_context ⇒ Object
Returns the value of attribute call_context.
37 38 39 |
# File 'lib/killbill/gen/api/plan_phase_price_overrides_with_call_context.rb', line 37 def call_context @call_context end |
#overrides ⇒ Object
Returns the value of attribute overrides.
37 38 39 |
# File 'lib/killbill/gen/api/plan_phase_price_overrides_with_call_context.rb', line 37 def overrides @overrides 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/plan_phase_price_overrides_with_call_context.rb', line 42 def to_java() # 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 # conversion for call_context [type = org.killbill.billing.util.callcontext.CallContext] @call_context = @call_context.to_java unless @call_context.nil? self end |
#to_ruby(j_obj) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/killbill/gen/api/plan_phase_price_overrides_with_call_context.rb', line 57 def to_ruby(j_obj) # 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 # conversion for call_context [type = org.killbill.billing.util.callcontext.CallContext] @call_context = j_obj.call_context @call_context = Killbill::Plugin::Model::CallContext.new.to_ruby(@call_context) unless @call_context.nil? self end |