Class: Org::Familysearch::Ws::Familytree::V2::Schema::UserAccount
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Instance Attribute Summary collapse
-
#changePassword ⇒ Object
(no documentation provided).
-
#created ⇒ Object
(no documentation provided).
-
#enabled ⇒ Object
(no documentation provided).
-
#registered ⇒ Object
(no documentation provided).
-
#status ⇒ Object
(no documentation provided).
-
#terms ⇒ Object
(no documentation provided).
-
#updated ⇒ Object
(no documentation provided).
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a UserAccount from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this UserAccount with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this UserAccount.
-
#to_json ⇒ Object
the json (string form) for this UserAccount.
Instance Attribute Details
#changePassword ⇒ Object
(no documentation provided)
2216 2217 2218 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2216 def changePassword @changePassword end |
#created ⇒ Object
(no documentation provided)
2220 2221 2222 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2220 def created @created end |
#enabled ⇒ Object
(no documentation provided)
2214 2215 2216 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2214 def enabled @enabled end |
#registered ⇒ Object
(no documentation provided)
2210 2211 2212 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2210 def registered @registered end |
#status ⇒ Object
(no documentation provided)
2212 2213 2214 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2212 def status @status end |
#terms ⇒ Object
(no documentation provided)
2218 2219 2220 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2218 def terms @terms end |
#updated ⇒ Object
(no documentation provided)
2222 2223 2224 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2222 def updated @updated end |
Class Method Details
.from_json(o) ⇒ Object
constructs a UserAccount from a (parsed) JSON hash
2254 2255 2256 2257 2258 2259 2260 2261 2262 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2254 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 UserAccount with a json hash
2243 2244 2245 2246 2247 2248 2249 2250 2251 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2243 def init_jaxb_json_hash(_o) @registered = Boolean.from_json(_o['registered']) unless _o['registered'].nil? @status = String.from_json(_o['status']) unless _o['status'].nil? @enabled = Boolean.from_json(_o['enabled']) unless _o['enabled'].nil? @changePassword = Boolean.from_json(_o['changePassword']) unless _o['changePassword'].nil? @terms = Org::Familysearch::Ws::Familytree::V2::Schema::UserTerms.from_json(_o['terms']) unless _o['terms'].nil? @created = Time.from_json(_o['created']) unless _o['created'].nil? @updated = Time.from_json(_o['updated']) unless _o['updated'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this UserAccount
2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2225 def to_jaxb_json_hash _h = {} _h['registered'] = registered.to_jaxb_json_hash unless registered.nil? _h['status'] = status.to_jaxb_json_hash unless status.nil? _h['enabled'] = enabled.to_jaxb_json_hash unless enabled.nil? _h['changePassword'] = changePassword.to_jaxb_json_hash unless changePassword.nil? _h['terms'] = terms.to_jaxb_json_hash unless terms.nil? _h['created'] = created.to_jaxb_json_hash unless created.nil? _h['updated'] = updated.to_jaxb_json_hash unless updated.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this UserAccount
2238 2239 2240 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2238 def to_json to_jaxb_json_hash.to_json end |