Class: Twinfield::SalesInvoice::VatLine
- Inherits:
-
Object
- Object
- Twinfield::SalesInvoice::VatLine
- Defined in:
- lib/twinfield/sales_invoice.rb
Instance Attribute Summary collapse
-
#invoice ⇒ Object
Returns the value of attribute invoice.
-
#performancedate ⇒ Object
Returns the value of attribute performancedate.
-
#performancetype ⇒ Object
Returns the value of attribute performancetype.
-
#vatcode ⇒ Object
Returns the value of attribute vatcode.
-
#vatname ⇒ Object
Returns the value of attribute vatname.
-
#vatvalue ⇒ Object
Returns the value of attribute vatvalue.
Instance Method Summary collapse
-
#initialize(vatcode:, vatvalue:, performancetype:, performancedate:, vatname:) ⇒ VatLine
constructor
A new instance of VatLine.
- #to_h ⇒ Object
Constructor Details
#initialize(vatcode:, vatvalue:, performancetype:, performancedate:, vatname:) ⇒ VatLine
Returns a new instance of VatLine.
24 25 26 27 28 29 30 |
# File 'lib/twinfield/sales_invoice.rb', line 24 def initialize(vatcode:, vatvalue:, performancetype:, performancedate:, vatname:) @vatcode = vatcode @vatvalue = vatvalue @performancetype = performancetype @performancedate = performancedate @vatname = vatname end |
Instance Attribute Details
#invoice ⇒ Object
Returns the value of attribute invoice.
22 23 24 |
# File 'lib/twinfield/sales_invoice.rb', line 22 def invoice @invoice end |
#performancedate ⇒ Object
Returns the value of attribute performancedate.
22 23 24 |
# File 'lib/twinfield/sales_invoice.rb', line 22 def performancedate @performancedate end |
#performancetype ⇒ Object
Returns the value of attribute performancetype.
22 23 24 |
# File 'lib/twinfield/sales_invoice.rb', line 22 def performancetype @performancetype end |
#vatcode ⇒ Object
Returns the value of attribute vatcode.
22 23 24 |
# File 'lib/twinfield/sales_invoice.rb', line 22 def vatcode @vatcode end |
#vatname ⇒ Object
Returns the value of attribute vatname.
22 23 24 |
# File 'lib/twinfield/sales_invoice.rb', line 22 def vatname @vatname end |
#vatvalue ⇒ Object
Returns the value of attribute vatvalue.
22 23 24 |
# File 'lib/twinfield/sales_invoice.rb', line 22 def vatvalue @vatvalue end |
Instance Method Details
#to_h ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/twinfield/sales_invoice.rb', line 32 def to_h { vatcode: vatcode, vatvalue: vatvalue, performancetype: performancetype, performancedate: performancedate, vatname: vatname } end |