Class: Economic::Repos::Invoices::Booked

Inherits:
Economic::Repo show all
Defined in:
lib/economic/repos/invoices/booked.rb

Constant Summary

Constants inherited from Economic::Repo

Economic::Repo::DEFAULT_QUERY_PARAMS, Economic::Repo::ROOT

Instance Attribute Summary

Attributes inherited from Economic::Repo

#credentials

Instance Method Summary collapse

Methods inherited from Economic::Repo

#all, #destroy, #find, #initialize, #update

Constructor Details

This class inherits a constructor from Economic::Repo

Instance Method Details

#create(model, send_by: nil) ⇒ Object



5
6
7
8
9
# File 'lib/economic/repos/invoices/booked.rb', line 5

def create(model, send_by: nil)
  hash = model.to_h
  hash[:sendBy] = send_by if send_by.to_s == "ean"
  super(hash)
end