Class: RubyApp::Elements::Base::BaseMail

Inherits:
RubyApp::Element show all
Includes:
Mixins::HashMixin
Defined in:
lib/ruby_app/elements/base/base_mail.rb

Direct Known Subclasses

Mail

Instance Attribute Summary collapse

Attributes inherited from RubyApp::Element

#attributes

Instance Method Summary collapse

Methods included from Mixins::HashMixin

#method_missing

Methods inherited from RubyApp::Element

#element_id, get_element

Methods included from Mixins::ConfigurationMixin

#configuration

Methods included from Mixins::TranslateMixin

#localize, #translate

Methods included from Mixins::TemplateMixin

#exclude_parent_template, #exclude_parent_template?, #get_cache, #get_template, #get_templates, #template_name, #template_path

Methods included from Mixins::RenderMixin

#content_for, #render, #rendered?

Constructor Details

#initializeBaseMail

Returns a new instance of BaseMail.



17
18
19
20
# File 'lib/ruby_app/elements/base/base_mail.rb', line 17

def initialize
  super
  @data = {}
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RubyApp::Mixins::HashMixin

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



15
16
17
# File 'lib/ruby_app/elements/base/base_mail.rb', line 15

def data
  @data
end

Instance Method Details

#[](key) ⇒ Object



22
23
24
# File 'lib/ruby_app/elements/base/base_mail.rb', line 22

def [](key)
  @data[key]
end

#[]=(key, value) ⇒ Object



26
27
28
# File 'lib/ruby_app/elements/base/base_mail.rb', line 26

def []=(key, value)
  @data[key] = value
end