Class: Org::Familysearch::Ws::Familytree::V2::Schema::NamePiece
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A piece of a name.
Instance Attribute Summary collapse
-
#postdelimiters ⇒ Object
The postdelimiters.
-
#predelimiters ⇒ Object
The predelimiters.
-
#type ⇒ Object
The type of the name piece.
-
#value ⇒ Object
The value of the name piece.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a NamePiece from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this NamePiece with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this NamePiece.
-
#to_json ⇒ Object
the json (string form) for this NamePiece.
Instance Attribute Details
#postdelimiters ⇒ Object
The postdelimiters.
932 933 934 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 932 def postdelimiters @postdelimiters end |
#predelimiters ⇒ Object
The predelimiters.
928 929 930 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 928 def predelimiters @predelimiters end |
#type ⇒ Object
The type of the name piece.
926 927 928 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 926 def type @type end |
#value ⇒ Object
The value of the name piece.
930 931 932 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 930 def value @value end |
Class Method Details
.from_json(o) ⇒ Object
constructs a NamePiece from a (parsed) JSON hash
958 959 960 961 962 963 964 965 966 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 958 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 NamePiece with a json hash
950 951 952 953 954 955 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 950 def init_jaxb_json_hash(_o) @type = String.from_json(_o['type']) unless _o['type'].nil? @predelimiters = String.from_json(_o['predelimiters']) unless _o['predelimiters'].nil? @value = String.from_json(_o['value']) unless _o['value'].nil? @postdelimiters = String.from_json(_o['postdelimiters']) unless _o['postdelimiters'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this NamePiece
935 936 937 938 939 940 941 942 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 935 def to_jaxb_json_hash _h = {} _h['type'] = type.to_jaxb_json_hash unless type.nil? _h['predelimiters'] = predelimiters.to_jaxb_json_hash unless predelimiters.nil? _h['value'] = value.to_jaxb_json_hash unless value.nil? _h['postdelimiters'] = postdelimiters.to_jaxb_json_hash unless postdelimiters.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this NamePiece
945 946 947 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 945 def to_json to_jaxb_json_hash.to_json end |