Class: Org::Familysearch::Ws::Familytree::V2::Schema::ContributorAlias
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Instance Attribute Summary collapse
-
#contactName ⇒ Object
The alias contact name.
-
#id ⇒ Object
The alias id.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a ContributorAlias from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this ContributorAlias with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this ContributorAlias.
-
#to_json ⇒ Object
the json (string form) for this ContributorAlias.
Instance Attribute Details
#contactName ⇒ Object
The alias contact name.
3658 3659 3660 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3658 def contactName @contactName end |
#id ⇒ Object
The alias id.
3656 3657 3658 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3656 def id @id end |
Class Method Details
.from_json(o) ⇒ Object
constructs a ContributorAlias from a (parsed) JSON hash
3680 3681 3682 3683 3684 3685 3686 3687 3688 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3680 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 ContributorAlias with a json hash
3674 3675 3676 3677 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3674 def init_jaxb_json_hash(_o) @id = String.from_json(_o['id']) unless _o['id'].nil? @contactName = String.from_json(_o['contactName']) unless _o['contactName'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this ContributorAlias
3661 3662 3663 3664 3665 3666 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3661 def to_jaxb_json_hash _h = {} _h['id'] = id.to_jaxb_json_hash unless id.nil? _h['contactName'] = contactName.to_jaxb_json_hash unless contactName.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this ContributorAlias
3669 3670 3671 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3669 def to_json to_jaxb_json_hash.to_json end |