Class: ExcelSerializer::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/excel_serializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(excel_adapter: :write_excel, translation_adapter: :i18n) ⇒ Config

Returns a new instance of Config.



14
15
16
17
18
# File 'lib/excel_serializer.rb', line 14

def initialize(excel_adapter: :write_excel,
                translation_adapter: :i18n)
  self.excel_adapter = excel_adapter
  self.translation_adapter = translation_adapter
end

Instance Attribute Details

#excel_adapterObject

Returns the value of attribute excel_adapter.



12
13
14
# File 'lib/excel_serializer.rb', line 12

def excel_adapter
  @excel_adapter
end

#translation_adapterObject

Returns the value of attribute translation_adapter.



12
13
14
# File 'lib/excel_serializer.rb', line 12

def translation_adapter
  @translation_adapter
end