Class: Cadooz::Immutable::InvoiceInformation
- Inherits:
-
Object
- Object
- Cadooz::Immutable::InvoiceInformation
- Includes:
- Mixins
- Defined in:
- lib/cadooz/models/immutable/invoice_information.rb
Instance Attribute Summary collapse
-
#debitor_number ⇒ Object
readonly
Returns the value of attribute debitor_number.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(open_struct) ⇒ InvoiceInformation
constructor
A new instance of InvoiceInformation.
Methods included from Mixins
#cadooz_class, #default_value_for_nil, #instance_variables_empty?, #serialize
Constructor Details
#initialize(open_struct) ⇒ InvoiceInformation
Returns a new instance of InvoiceInformation.
6 7 8 9 10 11 |
# File 'lib/cadooz/models/immutable/invoice_information.rb', line 6 def initialize(open_struct) @debitor_number = open_struct&.debitor_number @value = open_struct&.value self.freeze end |
Instance Attribute Details
#debitor_number ⇒ Object (readonly)
Returns the value of attribute debitor_number.
4 5 6 |
# File 'lib/cadooz/models/immutable/invoice_information.rb', line 4 def debitor_number @debitor_number end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/cadooz/models/immutable/invoice_information.rb', line 4 def value @value end |