Class: GEDCOM_DATE_PARSER::GEDDateValue

Inherits:
Object
  • Object
show all
Defined in:
lib/gedcom_ruby/date_parser.rb

Overview

This should be the end result of our parsing

Direct Known Subclasses

GEDCOM::Date

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flags, d1, d2) ⇒ GEDDateValue

Returns a new instance of GEDDateValue.



413
414
415
416
417
# File 'lib/gedcom_ruby/date_parser.rb', line 413

def initialize(flags, d1, d2)
  @flags = flags
  @date1 = d1
  @date2 = d2
end

Instance Attribute Details

#date1Object

Returns the value of attribute date1.



412
413
414
# File 'lib/gedcom_ruby/date_parser.rb', line 412

def date1
  @date1
end

#date2Object

Returns the value of attribute date2.



412
413
414
# File 'lib/gedcom_ruby/date_parser.rb', line 412

def date2
  @date2
end

#flagsObject

Returns the value of attribute flags.



412
413
414
# File 'lib/gedcom_ruby/date_parser.rb', line 412

def flags
  @flags
end