Class: GEDCOM_DATE_PARSER::GEDDate

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

Direct Known Subclasses

GEDCOM::DatePart

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, flags, data) ⇒ GEDDate

Returns a new instance of GEDDate.



404
405
406
407
408
# File 'lib/gedcom_ruby/date_parser.rb', line 404

def initialize(type, flags, data)
  @type = type
  @flags = flags
  @data = data  # Data should be either a string, Gregorian date or General Date
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



403
404
405
# File 'lib/gedcom_ruby/date_parser.rb', line 403

def data
  @data
end

#flagsObject

Returns the value of attribute flags.



403
404
405
# File 'lib/gedcom_ruby/date_parser.rb', line 403

def flags
  @flags
end

#typeObject

Returns the value of attribute type.



403
404
405
# File 'lib/gedcom_ruby/date_parser.rb', line 403

def type
  @type
end