Class: Org::Familysearch::Ws::Familytree::V2::Schema::GenderValue
- Inherits:
-
AssertionValue
- Object
- AssertionValue
- Org::Familysearch::Ws::Familytree::V2::Schema::GenderValue
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A gender value.
Instance Attribute Summary collapse
-
#type ⇒ Object
The type of the gender.
Attributes inherited from AssertionValue
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a GenderValue from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this GenderValue with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this GenderValue.
Methods inherited from AssertionValue
Instance Attribute Details
#type ⇒ Object
The type of the gender.
6995 6996 6997 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6995 def type @type end |
Class Method Details
.from_json(o) ⇒ Object
constructs a GenderValue from a (parsed) JSON hash
7011 7012 7013 7014 7015 7016 7017 7018 7019 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7011 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
#init_jaxb_json_hash(_o) ⇒ Object
initializes this GenderValue with a json hash
7005 7006 7007 7008 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7005 def init_jaxb_json_hash(_o) super _o @type = String.from_json(_o['type']) unless _o['type'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this GenderValue
6998 6999 7000 7001 7002 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6998 def to_jaxb_json_hash _h = super _h['type'] = type.to_jaxb_json_hash unless type.nil? return _h end |