Class: Org::Familysearch::Ws::Familytree::V2::Schema::EventValue
- Inherits:
-
AssertionValue
- Object
- AssertionValue
- Org::Familysearch::Ws::Familytree::V2::Schema::EventValue
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb,
lib/ruby-fs-stack/familytree/event.rb
Overview
An event value.
Instance Attribute Summary collapse
-
#date ⇒ Object
The date the assertion occurred.
-
#description ⇒ Object
The description of the event.
-
#place ⇒ Object
The place the assertion occurred.
-
#type ⇒ Object
The type of the event.
Attributes inherited from AssertionValue
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a EventValue from a (parsed) JSON hash.
Instance Method Summary collapse
- #add_date(value) ⇒ Object
- #add_place(value) ⇒ Object
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this EventValue with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this EventValue.
Methods inherited from AssertionValue
Instance Attribute Details
#date ⇒ Object
The date the assertion occurred.
7109 7110 7111 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7109 def date @date end |
#description ⇒ Object
The description of the event.
7107 7108 7109 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7107 def description @description end |
#place ⇒ Object
The place the assertion occurred.
7111 7112 7113 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7111 def place @place end |
#type ⇒ Object
The type of the event.
7105 7106 7107 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7105 def type @type end |
Class Method Details
.from_json(o) ⇒ Object
constructs a EventValue from a (parsed) JSON hash
7133 7134 7135 7136 7137 7138 7139 7140 7141 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7133 def self.from_json(o) if o.nil? return nil else inst = new inst.init_jaxb_json_hash o return inst end end |
Instance Method Details
#add_date(value) ⇒ Object
4 5 6 7 |
# File 'lib/ruby-fs-stack/familytree/event.rb', line 4 def add_date(value) self.date = GenDate.new self.date.original = value end |
#add_place(value) ⇒ Object
9 10 11 12 |
# File 'lib/ruby-fs-stack/familytree/event.rb', line 9 def add_place(value) self.place = Place.new self.place.original = value end |
#init_jaxb_json_hash(_o) ⇒ Object
initializes this EventValue with a json hash
7124 7125 7126 7127 7128 7129 7130 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7124 def init_jaxb_json_hash(_o) super _o @type = String.from_json(_o['type']) unless _o['type'].nil? @description = String.from_json(_o['description']) unless _o['description'].nil? @date = Org::Familysearch::Ws::Familytree::V2::Schema::GenDate.from_json(_o['date']) unless _o['date'].nil? @place = Org::Familysearch::Ws::Familytree::V2::Schema::Place.from_json(_o['place']) unless _o['place'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this EventValue
7114 7115 7116 7117 7118 7119 7120 7121 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7114 def to_jaxb_json_hash _h = super _h['type'] = type.to_jaxb_json_hash unless type.nil? _h['description'] = description.to_jaxb_json_hash unless description.nil? _h['date'] = date.to_jaxb_json_hash unless date.nil? _h['place'] = place.to_jaxb_json_hash unless place.nil? return _h end |