Class: Rubill::Vendor
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#[], #[]=, active, all, create, delete, #delete, find, find_by_name, #id, #initialize, #save, update, where
Constructor Details
This class inherits a constructor from Rubill::Base
Instance Method Details
#bills ⇒ Object
3 4 5 6 7 8 |
# File 'lib/rubill/entities/vendor.rb', line 3 def bills Bill.where([ Query::Filter.new("isActive", "=", "1"), Query::Filter.new("vendorId", "=", id), ]) end |
#send_invite(email) ⇒ Object
10 11 12 |
# File 'lib/rubill/entities/vendor.rb', line 10 def send_invite(email) Query.send_vendor_invite(id, email) end |