Class: Moneybird::Resource::RecurringSalesInvoice
- Inherits:
-
Object
- Object
- Moneybird::Resource::RecurringSalesInvoice
- Extended by:
- ClassMethods
- Includes:
- Moneybird::Resource
- Defined in:
- lib/moneybird/resource/recurring_sales_invoice.rb
Instance Attribute Summary
Attributes included from ClassMethods
#attributes, #logger, #nillable_attributes
Attributes included from Moneybird::Resource
Instance Method Summary collapse
- #contact=(attributes) ⇒ Object
- #details=(line_items) ⇒ Object
- #events=(events) ⇒ Object
- #notes=(notes) ⇒ Object
Methods included from ClassMethods
build, has_attributes, has_boolean_attributes, has_datetime_attributes, has_integer_attributes, has_nillable_attributes, resource
Methods included from Moneybird::Resource
#attributes, #attributes=, #custom_fields=, #initialize, #link_booking, #path, #persisted?, #to_json
Instance Method Details
#contact=(attributes) ⇒ Object
46 47 48 |
# File 'lib/moneybird/resource/recurring_sales_invoice.rb', line 46 def contact=(attributes) @contact = Moneybird::Resource::Contact.build(attributes) end |
#details=(line_items) ⇒ Object
50 51 52 |
# File 'lib/moneybird/resource/recurring_sales_invoice.rb', line 50 def details=(line_items) @details = line_items.map{ |line_item| Moneybird::Resource::Invoice::Details.build(line_item) } end |