Class: Xero::Models::LineItem
- Defined in:
- lib/xero/models/line_item.rb
Instance Attribute Summary
Attributes inherited from BaseModel
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 |