Class: HideAncestry::ModelManage::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/hide_ancestry/model_manage/base.rb

Direct Known Subclasses

CustomAncestryUpdater, Hide, Restore

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance) ⇒ Base

Returns a new instance of Base.



10
11
12
# File 'lib/hide_ancestry/model_manage/base.rb', line 10

def initialize(instance)
  @instance = instance
end

Instance Attribute Details

#instanceObject

Returns the value of attribute instance.



8
9
10
# File 'lib/hide_ancestry/model_manage/base.rb', line 8

def instance
  @instance
end

Class Method Details

.call(instance) ⇒ Object



4
5
6
# File 'lib/hide_ancestry/model_manage/base.rb', line 4

def self.call(instance)
  new(instance).call
end