Class: Moist::Steps::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/moist/steps/step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mailer_class, mailer_action, options = {}) ⇒ Step

Returns a new instance of Step.



5
6
7
8
9
# File 'lib/moist/steps/step.rb', line 5

def initialize(mailer_class, mailer_action, options = {})
  @mailer_class = mailer_class
  @mailer_action = mailer_action
  @options = options
end

Instance Attribute Details

#mailer_actionObject (readonly)

Returns the value of attribute mailer_action.



4
5
6
# File 'lib/moist/steps/step.rb', line 4

def mailer_action
  @mailer_action
end

#mailer_classObject (readonly)

Returns the value of attribute mailer_class.



4
5
6
# File 'lib/moist/steps/step.rb', line 4

def mailer_class
  @mailer_class
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/moist/steps/step.rb', line 4

def options
  @options
end

Instance Method Details

#nameObject



11
12
13
# File 'lib/moist/steps/step.rb', line 11

def name
  "#{mailer_class}##{mailer_action}"
end