Class: Xero::Models::LineItem

Inherits:
BaseModel show all
Defined in:
lib/xero/models/line_item.rb

Instance Attribute Summary

Attributes inherited from BaseModel

#client, #new_record

Instance Method Summary collapse

Methods inherited from BaseModel

#attributes=, #cleanup_hash, #initialize, #persisted?, #save

Constructor Details

This class inherits a constructor from Xero::Models::BaseModel

Instance Method Details

#xero_attributes(attrs = nil) ⇒ Object



18
19
20
21
22
# File 'lib/xero/models/line_item.rb', line 18

def xero_attributes(attrs = nil)
  attrs = super(attrs)
  attrs.merge!('ItemCode' => item.code) if item
  attrs
end