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

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

Overview

A Family Tree contributor reference.

Instance Attribute Summary collapse

Attributes inherited from EntityReference

#current, #id, #tempId, #version

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from EntityReference

#to_json

Instance Attribute Details

#dispositionObject

(no documentation provided)



7312
7313
7314
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7312

def disposition
  @disposition
end

#submitterObject

(no documentation provided)



7314
7315
7316
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7314

def submitter
  @submitter
end

Class Method Details

.from_json(o) ⇒ Object

constructs a ContributorReference from a (parsed) JSON hash



7332
7333
7334
7335
7336
7337
7338
7339
7340
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7332

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



7325
7326
7327
7328
7329
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7325

def init_jaxb_json_hash(_o)
  super _o
  @disposition = String.from_json(_o['disposition']) unless _o['disposition'].nil?
  @submitter = Org::Familysearch::Ws::Familytree::V2::Schema::EntityReference.from_json(_o['submitter']) unless _o['submitter'].nil?
end

#to_jaxb_json_hashObject

the json hash for this ContributorReference



7317
7318
7319
7320
7321
7322
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7317

def to_jaxb_json_hash
  _h = super
  _h['disposition'] = disposition.to_jaxb_json_hash unless disposition.nil?
  _h['submitter'] = submitter.to_jaxb_json_hash unless submitter.nil?
  return _h
end