Class: AAMVA::Decoder
- Inherits:
-
Object
- Object
- AAMVA::Decoder
- Defined in:
- lib/aamva/decoder.rb
Instance Attribute Summary collapse
-
#barcode ⇒ Object
readonly
Returns the value of attribute barcode.
-
#standard ⇒ Object
readonly
Returns the value of attribute standard.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(standard, barcode) ⇒ Decoder
constructor
A new instance of Decoder.
Constructor Details
#initialize(standard, barcode) ⇒ Decoder
Returns a new instance of Decoder.
7 8 9 10 |
# File 'lib/aamva/decoder.rb', line 7 def initialize(standard, ) @standard = standard = end |
Instance Attribute Details
#barcode ⇒ Object (readonly)
Returns the value of attribute barcode.
5 6 7 |
# File 'lib/aamva/decoder.rb', line 5 def end |
#standard ⇒ Object (readonly)
Returns the value of attribute standard.
5 6 7 |
# File 'lib/aamva/decoder.rb', line 5 def standard @standard end |
Instance Method Details
#data ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/aamva/decoder.rb', line 12 def data @data ||= Data.new( header: header, subfile_designators: subfile_designators, subfiles: subfiles ) end |