Class: Postmen::Invoice
- Inherits:
-
Object
- Object
- Postmen::Invoice
- Includes:
- Common
- Defined in:
- lib/postmen/invoice.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#number_of_copies ⇒ Object
readonly
Returns the value of attribute number_of_copies.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(options) ⇒ Invoice
constructor
A new instance of Invoice.
Methods included from Common
Constructor Details
#initialize(options) ⇒ Invoice
Returns a new instance of Invoice.
10 11 12 13 14 15 |
# File 'lib/postmen/invoice.rb', line 10 def initialize() @date = [:date] # In YYYY-MM-DD format @number = [:number] @type = [:type] @number_of_copies = [:number_of_copies] end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
5 6 7 |
# File 'lib/postmen/invoice.rb', line 5 def date @date end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
5 6 7 |
# File 'lib/postmen/invoice.rb', line 5 def number @number end |
#number_of_copies ⇒ Object (readonly)
Returns the value of attribute number_of_copies.
5 6 7 |
# File 'lib/postmen/invoice.rb', line 5 def number_of_copies @number_of_copies end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/postmen/invoice.rb', line 5 def type @type end |