Class: TxtData::TxtDataRowDSL::Field
- Inherits:
-
Struct
- Object
- Struct
- TxtData::TxtDataRowDSL::Field
- Includes:
- FormatHelpers
- Defined in:
- lib/txt_data/txt_data_row_dsl/field.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#just ⇒ Object
Returns the value of attribute just.
-
#pad ⇒ Object
Returns the value of attribute pad.
-
#range ⇒ Object
Returns the value of attribute range.
-
#sanitize ⇒ Object
Returns the value of attribute sanitize.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Methods included from FormatHelpers
#filter_illegal_characters, #money_format, #number_format, #text_format
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format
4 5 6 |
# File 'lib/txt_data/txt_data_row_dsl/field.rb', line 4 def format @format end |
#just ⇒ Object
Returns the value of attribute just
4 5 6 |
# File 'lib/txt_data/txt_data_row_dsl/field.rb', line 4 def just @just end |
#pad ⇒ Object
Returns the value of attribute pad
4 5 6 |
# File 'lib/txt_data/txt_data_row_dsl/field.rb', line 4 def pad @pad end |
#range ⇒ Object
Returns the value of attribute range
4 5 6 |
# File 'lib/txt_data/txt_data_row_dsl/field.rb', line 4 def range @range end |
#sanitize ⇒ Object
Returns the value of attribute sanitize
4 5 6 |
# File 'lib/txt_data/txt_data_row_dsl/field.rb', line 4 def sanitize @sanitize end |
#symbol ⇒ Object
Returns the value of attribute symbol
4 5 6 |
# File 'lib/txt_data/txt_data_row_dsl/field.rb', line 4 def symbol @symbol end |
#value ⇒ Object
Returns the value of attribute value
4 5 6 |
# File 'lib/txt_data/txt_data_row_dsl/field.rb', line 4 def value @value end |
Instance Method Details
#to_s(record) ⇒ Object
7 8 9 10 11 |
# File 'lib/txt_data/txt_data_row_dsl/field.rb', line 7 def to_s(record) data = get_data(record) validate_length!(data) format_data data end |