Class: GEDCOM_DATE_PARSER::GEDDateGeneral

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

Overview

General Date Class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flg, d, m, y) ⇒ GEDDateGeneral

Returns a new instance of GEDDateGeneral.



394
395
396
397
398
399
# File 'lib/gedcom_ruby/date_parser.rb', line 394

def initialize(flg, d, m, y)
  @flags = flg
  @day = d
  @month = m
  @year = y
end

Instance Attribute Details

#dayObject

Returns the value of attribute day.



393
394
395
# File 'lib/gedcom_ruby/date_parser.rb', line 393

def day
  @day
end

#flagsObject

Returns the value of attribute flags.



393
394
395
# File 'lib/gedcom_ruby/date_parser.rb', line 393

def flags
  @flags
end

#monthObject

Returns the value of attribute month.



393
394
395
# File 'lib/gedcom_ruby/date_parser.rb', line 393

def month
  @month
end

#yearObject

Returns the value of attribute year.



393
394
395
# File 'lib/gedcom_ruby/date_parser.rb', line 393

def year
  @year
end