Class: Composable::Tenant::DataSet

Inherits:
ActiveSupport::CurrentAttributes
  • Object
show all
Defined in:
lib/composable/tenant/data_set.rb

Instance Method Summary collapse

Instance Method Details

#excluded_tenantsObject



8
9
10
# File 'lib/composable/tenant/data_set.rb', line 8

def excluded_tenants
  super || Set.new
end

#tenant(tenant) ⇒ Object



16
17
18
# File 'lib/composable/tenant/data_set.rb', line 16

def tenant(tenant)
  tenants[tenant.to_sym]
end

#tenant=(array) ⇒ Object



12
13
14
# File 'lib/composable/tenant/data_set.rb', line 12

def tenant=(array)
  tenants[array.first.to_sym] = array.last
end