Sha256: 514584f87af5f26ad5dc8bc657eadc2f0b3a064b5706db082d87e220bd9993ad

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

module Fastbill
  module Automatic
    module Services
      module Setpaid
        module ClassMethods

          def setpaid(attributes)
            response = Fastbill::Automatic.request("#{self.name.split("::").last.downcase}.setpaid", attributes)
            self.new(response["RESPONSE"])
          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/setpaid.rb
fastbill-automatic-0.0.3 lib/fastbill-automatic/services/setpaid.rb