Module: Hushed::Documents::Document
- Included in:
- Request::ShipmentOrder
- Defined in:
- lib/hushed/documents/document.rb
Constant Summary collapse
- DATEFORMAT =
"%Y%m%d_%H%M%S"
Instance Method Summary collapse
- #date ⇒ Object
- #filename ⇒ Object
- #message_id ⇒ Object
- #to_xml ⇒ Object
- #type ⇒ Object
- #warehouse ⇒ Object
Instance Method Details
#date ⇒ Object
26 27 28 |
# File 'lib/hushed/documents/document.rb', line 26 def date raise NotImplementedError("To be implemented by subclasses") end |
#filename ⇒ Object
10 11 12 |
# File 'lib/hushed/documents/document.rb', line 10 def filename @filename ||= "#{business_unit}_#{type}_#{document_number}_#{date.strftime(DATEFORMAT)}.xml" end |
#message_id ⇒ Object
14 15 16 |
# File 'lib/hushed/documents/document.rb', line 14 def raise NotImplementedError("To be implemented by subclasses") end |
#to_xml ⇒ Object
6 7 8 |
# File 'lib/hushed/documents/document.rb', line 6 def to_xml raise NotImplementedError("To be implemented by subclasses") end |
#type ⇒ Object
22 23 24 |
# File 'lib/hushed/documents/document.rb', line 22 def type raise NotImplementedError("To be implemented by subclasses") end |
#warehouse ⇒ Object
18 19 20 |
# File 'lib/hushed/documents/document.rb', line 18 def warehouse raise NotImplementedError("To be implemented by subclasses") end |