Class: Promethee::Data::Localization
- Inherits:
-
Promethee::Data
- Object
- Promethee::Data
- Promethee::Data::Localization
- Defined in:
- lib/promethee/data/localization.rb
Instance Method Summary collapse
-
#initialize(data, master_data = nil) ⇒ Localization
constructor
A new instance of Localization.
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 |