Sha256: 47e827183a30b0ed158820778789a973b4d7c7bc32040e8d2f658b19f3eb4abd

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

module Fastbill
  module Automatic
    module Services
      module Sendbyemail
        module ClassMethods

          def sendbyemail(attributes)
            response = Fastbill::Automatic.request("#{self.name.split("::").last.downcase}.sendbyemail", attributes)
            true
          end
        end

        def self.included(base)
          base.extend(ClassMethods)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastbill-automatic-0.0.4 lib/fastbill-automatic/services/sendbyemail.rb
fastbill-automatic-0.0.3 lib/fastbill-automatic/services/sendbyemail.rb