Class: GEDCOM_DATE_PARSER::GEDDateGreg

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

Overview

Gregorian Date Class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flg, d, m, y, y2, adbc) ⇒ GEDDateGreg

Returns a new instance of GEDDateGreg.



381
382
383
384
385
386
387
388
# File 'lib/gedcom_ruby/date_parser.rb', line 381

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

Instance Attribute Details

#adbcObject

Returns the value of attribute adbc.



380
381
382
# File 'lib/gedcom_ruby/date_parser.rb', line 380

def adbc
  @adbc
end

#dayObject

Returns the value of attribute day.



380
381
382
# File 'lib/gedcom_ruby/date_parser.rb', line 380

def day
  @day
end

#flagsObject

Returns the value of attribute flags.



380
381
382
# File 'lib/gedcom_ruby/date_parser.rb', line 380

def flags
  @flags
end

#monthObject

Returns the value of attribute month.



380
381
382
# File 'lib/gedcom_ruby/date_parser.rb', line 380

def month
  @month
end

#yearObject

Returns the value of attribute year.



380
381
382
# File 'lib/gedcom_ruby/date_parser.rb', line 380

def year
  @year
end

#year2Object

Returns the value of attribute year2.



380
381
382
# File 'lib/gedcom_ruby/date_parser.rb', line 380

def year2
  @year2
end