Class: Impac::Kpi

Inherits:
BaseResource
  • Object
show all
Defined in:
app/models/mno_enterprise/impac/kpi.rb

Instance Method Summary collapse

Instance Method Details

#organizations(orgs = nil) ⇒ Object



10
11
12
13
14
15
16
# File 'app/models/mno_enterprise/impac/kpi.rb', line 10

def organizations(orgs = nil)
  if orgs.present?
    orgs.select { |org| organization_ids.include?(org.uid) }.to_a
  else
    MnoEnterprise::Organization.where('uid.in' => organization_ids).to_a
  end
end