Class: FacturX::PaymentTerms
- Inherits:
-
Object
- Object
- FacturX::PaymentTerms
- Defined in:
- lib/factur_x/payment.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#due_on ⇒ Object
readonly
Returns the value of attribute due_on.
-
#mandate_reference ⇒ Object
readonly
Returns the value of attribute mandate_reference.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(description: nil, due_on: nil, mandate_reference: nil) ⇒ PaymentTerms
constructor
A new instance of PaymentTerms.
Constructor Details
#initialize(description: nil, due_on: nil, mandate_reference: nil) ⇒ PaymentTerms
Returns a new instance of PaymentTerms.
36 37 38 39 40 |
# File 'lib/factur_x/payment.rb', line 36 def initialize(description: nil, due_on: nil, mandate_reference: nil) @description = description @due_on = due_on @mandate_reference = mandate_reference end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
34 35 36 |
# File 'lib/factur_x/payment.rb', line 34 def description @description end |
#due_on ⇒ Object (readonly)
Returns the value of attribute due_on.
34 35 36 |
# File 'lib/factur_x/payment.rb', line 34 def due_on @due_on end |
#mandate_reference ⇒ Object (readonly)
Returns the value of attribute mandate_reference.
34 35 36 |
# File 'lib/factur_x/payment.rb', line 34 def mandate_reference @mandate_reference end |
Instance Method Details
#empty? ⇒ Boolean
42 43 44 |
# File 'lib/factur_x/payment.rb', line 42 def empty? [description, due_on, mandate_reference].all?(&:nil?) end |