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