Class: Killbill::Plugin::Model::TenantContext
- Defined in:
- lib/killbill/gen/api/tenant_context.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#tenant_id ⇒ Object
Returns the value of attribute tenant_id.
Instance Method Summary collapse
-
#initialize ⇒ TenantContext
constructor
A new instance of TenantContext.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ TenantContext
Returns a new instance of TenantContext.
39 40 |
# File 'lib/killbill/gen/api/tenant_context.rb', line 39 def initialize() end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
37 38 39 |
# File 'lib/killbill/gen/api/tenant_context.rb', line 37 def account_id @account_id end |
#tenant_id ⇒ Object
Returns the value of attribute tenant_id.
37 38 39 |
# File 'lib/killbill/gen/api/tenant_context.rb', line 37 def tenant_id @tenant_id end |
Instance Method Details
#to_java ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/killbill/gen/api/tenant_context.rb', line 42 def to_java() # conversion for account_id [type = java.util.UUID] @account_id = java.util.UUID.fromString(@account_id.to_s) unless @account_id.nil? # conversion for tenant_id [type = java.util.UUID] @tenant_id = java.util.UUID.fromString(@tenant_id.to_s) unless @tenant_id.nil? self end |
#to_ruby(j_obj) ⇒ Object
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/killbill/gen/api/tenant_context.rb', line 51 def to_ruby(j_obj) # conversion for account_id [type = java.util.UUID] @account_id = j_obj.account_id @account_id = @account_id.nil? ? nil : @account_id.to_s # conversion for tenant_id [type = java.util.UUID] @tenant_id = j_obj.tenant_id @tenant_id = @tenant_id.nil? ? nil : @tenant_id.to_s self end |