Sha256: e70a7227a7d00aaba14d652c9bc731802d5cb5a9159734a1a4d85e680abab61d

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 Bytes

Contents

module MonkeyMail
  class Base
    attr_reader :params

    def initialize(params)
      @params = params
    end

    private

    def delivery_params
      params.except(:skip_delivery)
    end

    def render_template_params
      params.slice(:template_name, :vars)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monkey-mail-0.1.1 lib/monkey_mail/mail/base.rb
monkey-mail-0.1.0 lib/monkey_mail/mail/base.rb