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

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

#assertionObject

The assertion to which this error applies.



8327
8328
8329
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8327

def assertion
  @assertion
end

#codeObject

(no documentation provided)



8317
8318
8319
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8317

def code
  @code
end

#detailsObject

(no documentation provided)



8329
8330
8331
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8329

def details
  @details
end

#messageObject

(no documentation provided)



8321
8322
8323
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8321

def message
  @message
end

#personObject

Reference to the person to which the error applies.



8323
8324
8325
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8323

def person
  @person
end

#personaObject

Reference to the persona to which the error applies.



8325
8326
8327
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8325

def persona
  @persona
end

#subcodeObject

(no documentation provided)



8319
8320
8321
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8319

def subcode
  @subcode
end

Class Method Details

.from_json(o) ⇒ Object

constructs a FamilyTreeStatus from a (parsed) JSON hash



8361
8362
8363
8364
8365
8366
8367
8368
8369
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8361

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 FamilyTreeStatus with a json hash



8350
8351
8352
8353
8354
8355
8356
8357
8358
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8350

def init_jaxb_json_hash(_o)
  @code = Fixnum.from_json(_o['code']) unless _o['code'].nil?
  @subcode = Fixnum.from_json(_o['subcode']) unless _o['subcode'].nil?
  @message = String.from_json(_o['message']) unless _o['message'].nil?
  @person = Org::Familysearch::Ws::Familytree::V2::Schema::EntityReference.from_json(_o['person']) unless _o['person'].nil?
  @persona = Org::Familysearch::Ws::Familytree::V2::Schema::EntityReference.from_json(_o['persona']) unless _o['persona'].nil?
  @assertion = Org::Familysearch::Ws::Familytree::V2::Schema::EntityReference.from_json(_o['assertion']) unless _o['assertion'].nil?
  @details = String.from_json(_o['details']) unless _o['details'].nil?
end

#to_jaxb_json_hashObject

the json hash for this FamilyTreeStatus



8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8332

def to_jaxb_json_hash
  _h = {}
  _h['code'] = code.to_jaxb_json_hash unless code.nil?
  _h['subcode'] = subcode.to_jaxb_json_hash unless subcode.nil?
  _h['message'] = message.to_jaxb_json_hash unless message.nil?
  _h['person'] = person.to_jaxb_json_hash unless person.nil?
  _h['persona'] = persona.to_jaxb_json_hash unless persona.nil?
  _h['assertion'] = assertion.to_jaxb_json_hash unless assertion.nil?
  _h['details'] = details.to_jaxb_json_hash unless details.nil?
  return _h
end

#to_jsonObject

the json (string form) for this FamilyTreeStatus



8345
8346
8347
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8345

def to_json
  to_jaxb_json_hash.to_json
end