Class: Killbill::Plugin::Model::TenantContext

Inherits:
Object
  • Object
show all
Defined in:
lib/killbill/gen/api/tenant_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTenantContext

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_idObject

Returns the value of attribute account_id.



37
38
39
# File 'lib/killbill/gen/api/tenant_context.rb', line 37

def 
  @account_id
end

#tenant_idObject

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_javaObject



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.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