Class: Drill::Params

Inherits:
Struct
  • Object
show all
Defined in:
lib/drill/params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ccObject

Returns the value of attribute cc

Returns:

  • (Object)

    the current value of cc



4
5
6
# File 'lib/drill/params.rb', line 4

def cc
  @cc
end

#from_emailObject

Returns the value of attribute from_email

Returns:

  • (Object)

    the current value of from_email



4
5
6
# File 'lib/drill/params.rb', line 4

def from_email
  @from_email
end

#from_nameObject

Returns the value of attribute from_name

Returns:

  • (Object)

    the current value of from_name



4
5
6
# File 'lib/drill/params.rb', line 4

def from_name
  @from_name
end

#reply_toObject

Returns the value of attribute reply_to

Returns:

  • (Object)

    the current value of reply_to



4
5
6
# File 'lib/drill/params.rb', line 4

def reply_to
  @reply_to
end

#template_nameObject

Returns the value of attribute template_name

Returns:

  • (Object)

    the current value of template_name



4
5
6
# File 'lib/drill/params.rb', line 4

def template_name
  @template_name
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



4
5
6
# File 'lib/drill/params.rb', line 4

def to
  @to
end

#varsObject

Returns the value of attribute vars

Returns:

  • (Object)

    the current value of vars



4
5
6
# File 'lib/drill/params.rb', line 4

def vars
  @vars
end

Instance Method Details

#merge_vars(other_vars) ⇒ Object



8
9
10
# File 'lib/drill/params.rb', line 8

def merge_vars(other_vars)
  self.vars = Hash(vars).merge(other_vars)
end