Class: TemplateMapping

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

Instance Method Summary collapse

Constructor Details

#initialize(template_name, template_path, template_mapping) ⇒ TemplateMapping

Returns a new instance of TemplateMapping.



80
81
82
83
84
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 80

def initialize(template_name, template_path, template_mapping)
  @template_name = template_name
  @template_path = template_path
  @template_mapping = template_mapping
end

Instance Method Details

#create_hashObject



86
87
88
89
90
91
92
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 86

def create_hash
  {
      "template_name"=> @template_name,
      "template_path"=> @template_path,
      "template_mapping"=> @template_mapping
  }
end

#create_mappingObject



94
95
96
97
98
# File 'lib/apollo_commons_ruby/TemplatesHelper.rb', line 94

def create_mapping
  {
    @template_mapping => @template_name
  }
end