Class: X12::Table
- Inherits:
-
Hash
- Object
- Hash
- X12::Table
- Defined in:
- lib/x12/table.rb
Overview
This just a named hash to store validation tables.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, name_values) ⇒ Table
constructor
Create a new table with given name and hash content.
-
#inspect ⇒ Object
Return a printable string representing this table.
Constructor Details
#initialize(name, name_values) ⇒ Table
Create a new table with given name and hash content.
34 35 36 37 |
# File 'lib/x12/table.rb', line 34 def initialize(name, name_values) @name = name self.merge!(name_values) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
31 32 33 |
# File 'lib/x12/table.rb', line 31 def name @name end |
Instance Method Details
#inspect ⇒ Object
Return a printable string representing this table
40 41 42 |
# File 'lib/x12/table.rb', line 40 def inspect "Table #{name} -- #{super.inspect}" end |