Class: Clusters::Instance

Inherits:
Object
  • Object
show all
Defined in:
app/models/clusters/instance.rb

Instance Method Summary collapse

Instance Method Details

#clustersObject


5
6
7
# File 'app/models/clusters/instance.rb', line 5

def clusters
  Clusters::Cluster.instance_type
end

#feature_available?(feature) ⇒ Boolean

Returns:

  • (Boolean)

9
10
11
# File 'app/models/clusters/instance.rb', line 9

def feature_available?(feature)
  ::Feature.enabled?(feature, type: :licensed, default_enabled: true)
end

#flipper_idObject


13
14
15
# File 'app/models/clusters/instance.rb', line 13

def flipper_id
  self.class.to_s
end