Class: Lightning::FeatureOptIn

Inherits:
ApplicationRecord show all
Defined in:
app/models/lightning/feature_opt_in.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#entity_idObject

Returns the value of attribute entity_id.



5
6
7
# File 'app/models/lightning/feature_opt_in.rb', line 5

def entity_id
  @entity_id
end

Instance Method Details

#entity_nameObject



10
11
12
13
14
15
16
# File 'app/models/lightning/feature_opt_in.rb', line 10

def entity_name
  if entity.respond_to?(:lightning_display)
    entity.lightning_display
  else
    entity.id
  end
end