Sha256: 23e280451dc13c10becc446c91f83fa20019f73050966e3e6f9f859eeae7271f
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
module Fastbill module Automatic module Services module Sendbypost module ClassMethods def sendbypost(id) id_attribute = "#{self.name.split("::").last.downcase}_id".to_sym attributes = {} attributes[id_attribute] = id response = Fastbill::Automatic.request("#{self.name.split("::").last.downcase}.sendbypost", 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/sendbypost.rb |
fastbill-automatic-0.0.3 | lib/fastbill-automatic/services/sendbypost.rb |