Class: Killbill::Plugin::Model::AccountAuditLogs
- Defined in:
- lib/killbill/gen/api/account_audit_logs.rb
Instance Attribute Summary collapse
-
#audit_logs_for_account ⇒ Object
Returns the value of attribute audit_logs_for_account.
Instance Method Summary collapse
-
#initialize ⇒ AccountAuditLogs
constructor
A new instance of AccountAuditLogs.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ AccountAuditLogs
Returns a new instance of AccountAuditLogs.
39 40 |
# File 'lib/killbill/gen/api/account_audit_logs.rb', line 39 def initialize() end |
Instance Attribute Details
#audit_logs_for_account ⇒ Object
Returns the value of attribute audit_logs_for_account.
37 38 39 |
# File 'lib/killbill/gen/api/account_audit_logs.rb', line 37 def audit_logs_for_account @audit_logs_for_account end |
Instance Method Details
#to_java ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/killbill/gen/api/account_audit_logs.rb', line 42 def to_java() # conversion for audit_logs_for_account [type = java.util.List] tmp = java.util.ArrayList.new (@audit_logs_for_account || []).each do |m| # conversion for m [type = org.killbill.billing.util.audit.AuditLog] m = m.to_java unless m.nil? tmp.add(m) end @audit_logs_for_account = tmp self end |
#to_ruby(j_obj) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/killbill/gen/api/account_audit_logs.rb', line 54 def to_ruby(j_obj) # conversion for audit_logs_for_account [type = java.util.List] @audit_logs_for_account = j_obj.audit_logs_for_account tmp = [] (@audit_logs_for_account || []).each do |m| # conversion for m [type = org.killbill.billing.util.audit.AuditLog] m = Killbill::Plugin::Model::AuditLog.new.to_ruby(m) unless m.nil? tmp << m end @audit_logs_for_account = tmp self end |