Module: Fastbill::Automatic::Services::Create::ClassMethods

Defined in:
lib/fastbill-automatic/services/create.rb

Instance Method Summary collapse

Instance Method Details

#create(attributes) ⇒ Object



7
8
9
10
# File 'lib/fastbill-automatic/services/create.rb', line 7

def create(attributes)
  response = Fastbill::Automatic.request("#{self.name.split("::").last.downcase}.create", attributes)
  self.new(response["RESPONSE"])
end