Class: GEDCOM_DATE_PARSER::GEDDate
- Inherits:
-
Object
- Object
- GEDCOM_DATE_PARSER::GEDDate
- Defined in:
- lib/gedcom_ruby/date_parser.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, flags, data) ⇒ GEDDate
constructor
A new instance of GEDDate.
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
#data ⇒ Object
Returns the value of attribute data.
403 404 405 |
# File 'lib/gedcom_ruby/date_parser.rb', line 403 def data @data end |
#flags ⇒ Object
Returns the value of attribute flags.
403 404 405 |
# File 'lib/gedcom_ruby/date_parser.rb', line 403 def flags @flags end |
#type ⇒ Object
Returns the value of attribute type.
403 404 405 |
# File 'lib/gedcom_ruby/date_parser.rb', line 403 def type @type end |