Class: Promethee::Data::Localization

Inherits:
Promethee::Data show all
Defined in:
lib/promethee/data/localization.rb

Instance Method Summary collapse

Methods inherited from Promethee::Data

#[], #data, #include?, #to_json

Constructor Details

#initialize(data, master_data = nil) ⇒ Localization

Returns a new instance of Localization.



2
3
4
5
6
7
8
# File 'lib/promethee/data/localization.rb', line 2

def initialize(data, master_data = nil)
  super data
  if master_data
    @master_data = Master.new master_data
    merge
  end
end