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

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

Overview

Not used.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contactNameObject

Not used.



1490
1491
1492
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1490

def contactName
  @contactName
end

#idObject

Not used.



1488
1489
1490
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1488

def id
  @id
end

#systemNameObject

Not used.



1492
1493
1494
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1492

def systemName
  @systemName
end

Class Method Details

.from_json(o) ⇒ Object

constructs a ProxyRole from a (parsed) JSON hash



1516
1517
1518
1519
1520
1521
1522
1523
1524
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1516

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



1509
1510
1511
1512
1513
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1509

def init_jaxb_json_hash(_o)
  @id = String.from_json(_o['id']) unless _o['id'].nil?
  @contactName = String.from_json(_o['contactName']) unless _o['contactName'].nil?
  @systemName = String.from_json(_o['systemName']) unless _o['systemName'].nil?
end

#to_jaxb_json_hashObject

the json hash for this ProxyRole



1495
1496
1497
1498
1499
1500
1501
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1495

def to_jaxb_json_hash
  _h = {}
  _h['id'] = id.to_jaxb_json_hash unless id.nil?
  _h['contactName'] = contactName.to_jaxb_json_hash unless contactName.nil?
  _h['systemName'] = systemName.to_jaxb_json_hash unless systemName.nil?
  return _h
end

#to_jsonObject

the json (string form) for this ProxyRole



1504
1505
1506
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1504

def to_json
  to_jaxb_json_hash.to_json
end