Class: Maildis::MergeField
- Inherits:
-
Object
- Object
- Maildis::MergeField
- Defined in:
- lib/maildis/merge_field.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(field, value) ⇒ MergeField
constructor
A new instance of MergeField.
Constructor Details
#initialize(field, value) ⇒ MergeField
Returns a new instance of MergeField.
4 5 6 7 |
# File 'lib/maildis/merge_field.rb', line 4 def initialize(field, value) @field = field @value = value || "" end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
3 4 5 |
# File 'lib/maildis/merge_field.rb', line 3 def field @field end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/maildis/merge_field.rb', line 3 def value @value end |