Class: Org::Familysearch::Ws::Familytree::V2::Schema::GenderValue

Inherits:
AssertionValue show all
Defined in:
lib/ruby-fs-stack/enunciate/familytree.rb

Overview

A gender value.

Instance Attribute Summary collapse

Attributes inherited from AssertionValue

#id, #title

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AssertionValue

#to_json

Instance Attribute Details

#typeObject

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_hashObject

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