Module: Salutations

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/salutations.rb', line 4

def self.included(base)
  def call
    FOaaS::FO.new(resource: @resource, from: @from, name: @name).execute!
  end

  alias_method :execute!, :call
end

Instance Method Details

#callObject



5
6
7
# File 'lib/salutations.rb', line 5

def call
  FOaaS::FO.new(resource: @resource, from: @from, name: @name).execute!
end