Class: Org::Familysearch::Ws::Familytree::V2::Schema::User
- Inherits:
-
Contributor
- Object
- Contact
- Contributor
- Org::Familysearch::Ws::Familytree::V2::Schema::User
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A user of the new FamilySearch.
Instance Attribute Summary collapse
-
#accessNumber ⇒ Object
The helper access number.
-
#account ⇒ Object
(no documentation provided).
-
#alternate ⇒ Object
(no documentation provided).
-
#birth ⇒ Object
(no documentation provided).
-
#gender ⇒ Object
(no documentation provided).
-
#identifiers ⇒ Object
the user identifiers.
-
#membership ⇒ Object
(no documentation provided).
-
#officialName ⇒ Object
(no documentation provided).
-
#permissions ⇒ Object
The user’s permissions.
-
#person ⇒ Object
(no documentation provided).
-
#preferences ⇒ Object
the user preferences.
-
#preferredName ⇒ Object
The preferred name of the user.
-
#proxy ⇒ Object
The current proxy for the user.
-
#proxyRoles ⇒ Object
the user proxy roles.
-
#roles ⇒ Object
the user roles.
-
#signInName ⇒ Object
(no documentation provided).
Attributes inherited from Contributor
Attributes inherited from Contact
#address, #cisId, #contactName, #email, #fullName, #id, #phone, #requestedId
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a User from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this User with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this User.
Methods inherited from Contact
Instance Attribute Details
#accessNumber ⇒ Object
The helper access number.
8113 8114 8115 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8113 def accessNumber @accessNumber end |
#account ⇒ Object
(no documentation provided)
8131 8132 8133 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8131 def account @account end |
#alternate ⇒ Object
(no documentation provided)
8133 8134 8135 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8133 def alternate @alternate end |
#birth ⇒ Object
(no documentation provided)
8129 8130 8131 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8129 def birth @birth end |
#gender ⇒ Object
(no documentation provided)
8127 8128 8129 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8127 def gender @gender end |
#identifiers ⇒ Object
the user identifiers.
8137 8138 8139 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8137 def identifiers @identifiers end |
#membership ⇒ Object
(no documentation provided)
8135 8136 8137 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8135 def membership @membership end |
#officialName ⇒ Object
(no documentation provided)
8121 8122 8123 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8121 def officialName @officialName end |
#permissions ⇒ Object
The user’s permissions.
8115 8116 8117 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8115 def @permissions end |
#person ⇒ Object
(no documentation provided)
8125 8126 8127 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8125 def person @person end |
#preferences ⇒ Object
the user preferences.
8119 8120 8121 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8119 def preferences @preferences end |
#preferredName ⇒ Object
The preferred name of the user.
8111 8112 8113 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8111 def preferredName @preferredName end |
#proxy ⇒ Object
The current proxy for the user.
8117 8118 8119 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8117 def proxy @proxy end |
#proxyRoles ⇒ Object
the user proxy roles.
8139 8140 8141 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8139 def proxyRoles @proxyRoles end |
#roles ⇒ Object
the user roles.
8141 8142 8143 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8141 def roles @roles end |
#signInName ⇒ Object
(no documentation provided)
8123 8124 8125 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8123 def signInName @signInName end |
Class Method Details
.from_json(o) ⇒ Object
constructs a User from a (parsed) JSON hash
8227 8228 8229 8230 8231 8232 8233 8234 8235 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8227 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 User with a json hash
8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8186 def init_jaxb_json_hash(_o) super _o @preferredName = String.from_json(_o['preferredName']) unless _o['preferredName'].nil? @accessNumber = String.from_json(_o['accessNumber']) unless _o['accessNumber'].nil? if !_o['permissions'].nil? @permissions = Array.new _oa = _o['permissions'] _oa.each { | _item | @permissions.push String.from_json(_item) } end @proxy = Org::Familysearch::Ws::Familytree::V2::Schema::Proxy.from_json(_o['proxy']) unless _o['proxy'].nil? if !_o['preferences'].nil? @preferences = Array.new _oa = _o['preferences'] _oa.each { | _item | @preferences.push Org::Familysearch::Ws::Familytree::V2::Schema::UserPreference.from_json(_item) } end @officialName = String.from_json(_o['officialName']) unless _o['officialName'].nil? @signInName = String.from_json(_o['signInName']) unless _o['signInName'].nil? @person = Org::Familysearch::Ws::Familytree::V2::Schema::UserPerson.from_json(_o['person']) unless _o['person'].nil? @gender = String.from_json(_o['gender']) unless _o['gender'].nil? @birth = Org::Familysearch::Ws::Familytree::V2::Schema::GenDate.from_json(_o['birth']) unless _o['birth'].nil? @account = Org::Familysearch::Ws::Familytree::V2::Schema::UserAccount.from_json(_o['account']) unless _o['account'].nil? @alternate = Org::Familysearch::Ws::Familytree::V2::Schema::PostalAddress.from_json(_o['alternate']) unless _o['alternate'].nil? @membership = Org::Familysearch::Ws::Familytree::V2::Schema::UserMembership.from_json(_o['membership']) unless _o['membership'].nil? if !_o['identifiers'].nil? @identifiers = Array.new _oa = _o['identifiers'] _oa.each { | _item | @identifiers.push Org::Familysearch::Ws::Familytree::V2::Schema::UserIdentifier.from_json(_item) } end if !_o['proxyRoles'].nil? @proxyRoles = Array.new _oa = _o['proxyRoles'] _oa.each { | _item | @proxyRoles.push Org::Familysearch::Ws::Familytree::V2::Schema::ProxyRole.from_json(_item) } end if !_o['roles'].nil? @roles = Array.new _oa = _o['roles'] _oa.each { | _item | @roles.push String.from_json(_item) } end end |
#to_jaxb_json_hash ⇒ Object
the json hash for this User
8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8144 def to_jaxb_json_hash _h = super _h['preferredName'] = preferredName.to_jaxb_json_hash unless preferredName.nil? _h['accessNumber'] = accessNumber.to_jaxb_json_hash unless accessNumber.nil? if !.nil? _ha = Array.new .each { | _item | _ha.push _item.to_jaxb_json_hash } _h['permissions'] = _ha end _h['proxy'] = proxy.to_jaxb_json_hash unless proxy.nil? if !preferences.nil? _ha = Array.new preferences.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['preferences'] = _ha end _h['officialName'] = officialName.to_jaxb_json_hash unless officialName.nil? _h['signInName'] = signInName.to_jaxb_json_hash unless signInName.nil? _h['person'] = person.to_jaxb_json_hash unless person.nil? _h['gender'] = gender.to_jaxb_json_hash unless gender.nil? _h['birth'] = birth.to_jaxb_json_hash unless birth.nil? _h['account'] = account.to_jaxb_json_hash unless account.nil? _h['alternate'] = alternate.to_jaxb_json_hash unless alternate.nil? _h['membership'] = membership.to_jaxb_json_hash unless membership.nil? if !identifiers.nil? _ha = Array.new identifiers.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['identifiers'] = _ha end if !proxyRoles.nil? _ha = Array.new proxyRoles.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['proxyRoles'] = _ha end if !roles.nil? _ha = Array.new roles.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['roles'] = _ha end return _h end |