Class: TotalIn::Document::Transaction
- Inherits:
-
Object
- Object
- TotalIn::Document::Transaction
- Includes:
- AttributeMethods
- Defined in:
- lib/total_in/document.rb
Instance Attribute Summary collapse
-
#international ⇒ Object
Returns the value of attribute international.
-
#sender ⇒ Object
Returns the value of attribute sender.
-
#sender_account ⇒ Object
Returns the value of attribute sender_account.
Instance Method Summary collapse
- #add_message(message) ⇒ Object
- #international? ⇒ Boolean
- #message ⇒ Object
- #messages ⇒ Object
- #reference_numbers ⇒ Object
Methods included from AttributeMethods
Instance Attribute Details
#international ⇒ Object
Returns the value of attribute international.
56 57 58 |
# File 'lib/total_in/document.rb', line 56 def international @international end |
#sender ⇒ Object
Returns the value of attribute sender.
54 55 56 |
# File 'lib/total_in/document.rb', line 54 def sender @sender end |
#sender_account ⇒ Object
Returns the value of attribute sender_account.
55 56 57 |
# File 'lib/total_in/document.rb', line 55 def sender_account @sender_account end |
Instance Method Details
#add_message(message) ⇒ Object
66 67 68 |
# File 'lib/total_in/document.rb', line 66 def .push end |
#international? ⇒ Boolean
70 71 72 |
# File 'lib/total_in/document.rb', line 70 def international? !!self.international end |
#message ⇒ Object
58 59 60 |
# File 'lib/total_in/document.rb', line 58 def .join "\n" if .any? end |
#messages ⇒ Object
62 63 64 |
# File 'lib/total_in/document.rb', line 62 def @messages ||= [] end |
#reference_numbers ⇒ Object
50 51 52 |
# File 'lib/total_in/document.rb', line 50 def reference_numbers @reference_numbers ||= [] end |