Class: AAMVA::SubfileDesignator
- Inherits:
-
Object
- Object
- AAMVA::SubfileDesignator
- Defined in:
- lib/aamva/subfile_designator.rb
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type:, length:, offset:) ⇒ SubfileDesignator
constructor
A new instance of SubfileDesignator.
Constructor Details
#initialize(type:, length:, offset:) ⇒ SubfileDesignator
Returns a new instance of SubfileDesignator.
5 6 7 8 9 |
# File 'lib/aamva/subfile_designator.rb', line 5 def initialize(type:, length:, offset:) @type = type @length = length @offset = offset end |
Instance Attribute Details
#length ⇒ Object (readonly)
Returns the value of attribute length.
3 4 5 |
# File 'lib/aamva/subfile_designator.rb', line 3 def length @length end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
3 4 5 |
# File 'lib/aamva/subfile_designator.rb', line 3 def offset @offset end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/aamva/subfile_designator.rb', line 3 def type @type end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 14 15 |
# File 'lib/aamva/subfile_designator.rb', line 11 def ==(other) type == other.type && offset == other.offset && length == other.length end |