Sha256: bd4a731cf050625f4cc90d144de123470fac2ab7ba641867a459de96deff6739
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
module Fastbill module Automatic module Services module Create module ClassMethods def create(attributes) response = Fastbill::Automatic.request("#{self.name.split("::").last.downcase}.create", 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/create.rb |
fastbill-automatic-0.0.3 | lib/fastbill-automatic/services/create.rb |