Class: Eddy::TransactionSet
- Inherits:
-
Object
- Object
- Eddy::TransactionSet
- Defined in:
- lib/eddy/transaction_set.rb
Overview
Interchange / Document / Envelope / Group / File
Instance Attribute Summary collapse
- #code ⇒ Integer
-
#component_separator ⇒ String
Component Element Separator (defaults to
">"). - #description ⇒ String
-
#element_separator ⇒ String
Data Element Separator (defaults to
"*"). - #functional_group ⇒ String
-
#segment_separator ⇒ String
(defaults to
"~"). - #segments ⇒ Array<Segment>
-
#time ⇒ Time
Time value for use by DT/TM Elements.
Instance Method Summary collapse
- #initialize ⇒ void constructor
Constructor Details
#initialize ⇒ void
28 29 30 31 32 33 |
# File 'lib/eddy/transaction_set.rb', line 28 def initialize() self.time = Time.now().utc() self.component_separator = ">" self.segment_separator = "~" self.element_separator = "*" end |
Instance Attribute Details
#code ⇒ Integer
5 6 7 |
# File 'lib/eddy/transaction_set.rb', line 5 def code @code end |
#component_separator ⇒ String
Component Element Separator
(defaults to ">")
18 19 20 |
# File 'lib/eddy/transaction_set.rb', line 18 def component_separator @component_separator end |
#description ⇒ String
9 10 11 |
# File 'lib/eddy/transaction_set.rb', line 9 def description @description end |
#element_separator ⇒ String
Data Element Separator
(defaults to "*")
25 26 27 |
# File 'lib/eddy/transaction_set.rb', line 25 def element_separator @element_separator end |
#functional_group ⇒ String
7 8 9 |
# File 'lib/eddy/transaction_set.rb', line 7 def functional_group @functional_group end |
#segment_separator ⇒ String
(defaults to "~")
21 22 23 |
# File 'lib/eddy/transaction_set.rb', line 21 def segment_separator @segment_separator end |
#segments ⇒ Array<Segment>
11 12 13 |
# File 'lib/eddy/transaction_set.rb', line 11 def segments @segments end |
#time ⇒ Time
Time value for use by DT/TM Elements.
14 15 16 |
# File 'lib/eddy/transaction_set.rb', line 14 def time @time end |