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

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#changePasswordObject

(no documentation provided)



2216
2217
2218
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2216

def changePassword
  @changePassword
end

#createdObject

(no documentation provided)



2220
2221
2222
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2220

def created
  @created
end

#enabledObject

(no documentation provided)



2214
2215
2216
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2214

def enabled
  @enabled
end

#registeredObject

(no documentation provided)



2210
2211
2212
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2210

def registered
  @registered
end

#statusObject

(no documentation provided)



2212
2213
2214
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2212

def status
  @status
end

#termsObject

(no documentation provided)



2218
2219
2220
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2218

def terms
  @terms
end

#updatedObject

(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_hashObject

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_jsonObject

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