Class: Twinfield::SalesInvoice::Financials
- Inherits:
-
Object
- Object
- Twinfield::SalesInvoice::Financials
- Defined in:
- lib/twinfield/sales_invoice.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(code:, number:) ⇒ Financials
constructor
A new instance of Financials.
- #to_h ⇒ Object
Constructor Details
#initialize(code:, number:) ⇒ Financials
Returns a new instance of Financials.
8 9 10 11 |
# File 'lib/twinfield/sales_invoice.rb', line 8 def initialize(code:, number:) @code = code @number = number end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
6 7 8 |
# File 'lib/twinfield/sales_invoice.rb', line 6 def code @code end |
#number ⇒ Object
Returns the value of attribute number.
6 7 8 |
# File 'lib/twinfield/sales_invoice.rb', line 6 def number @number end |
Instance Method Details
#to_h ⇒ Object
13 14 15 16 17 18 |
# File 'lib/twinfield/sales_invoice.rb', line 13 def to_h { code: code, number: number } end |