Class: AAMVA::Subfile

Inherits:
Object
  • Object
show all
Defined in:
lib/aamva/subfile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_elementsObject (readonly)

Returns the value of attribute data_elements.



3
4
5
# File 'lib/aamva/subfile.rb', line 3

def data_elements
  @data_elements
end

#typeObject (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