Class: RecordStore::Zone::Config::TemplateContext

Inherits:
Object
  • Object
show all
Defined in:
lib/record_store/zone/config/implicit_record_template.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record:, current_records:) ⇒ TemplateContext

Returns a new instance of TemplateContext.



13
14
15
16
# File 'lib/record_store/zone/config/implicit_record_template.rb', line 13

def initialize(record:, current_records:)
  @record = record
  @current_records = current_records
end

Class Method Details

.build(record:, current_records:) ⇒ Object



8
9
10
# File 'lib/record_store/zone/config/implicit_record_template.rb', line 8

def build(record:, current_records:)
  new(record: record, current_records: current_records)
end

Instance Method Details

#fetch_bindingObject



18
19
20
# File 'lib/record_store/zone/config/implicit_record_template.rb', line 18

def fetch_binding
  binding
end