Class: Maildis::MergeField

Inherits:
Object
  • Object
show all
Defined in:
lib/maildis/merge_field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldObject (readonly)

Returns the value of attribute field.



3
4
5
# File 'lib/maildis/merge_field.rb', line 3

def field
  @field
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/maildis/merge_field.rb', line 3

def value
  @value
end