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

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

Overview

A proxy for a user.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accessNumberObject

Access number of the user being proxied.



2690
2691
2692
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2690

def accessNumber
  @accessNumber
end

#actionObject

The update action to perform on the proxy.



2686
2687
2688
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2686

def action
  @action
end

#birthObject

Birth date of the user to be proxied.



2692
2693
2694
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2692

def birth
  @birth
end

#idObject

Id of the user that is being proxied.



2684
2685
2686
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2684

def id
  @id
end

#nameObject

Name of the user being proxied.



2688
2689
2690
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2688

def name
  @name
end

Class Method Details

.from_json(o) ⇒ Object

constructs a Proxy from a (parsed) JSON hash



2720
2721
2722
2723
2724
2725
2726
2727
2728
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2720

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



2711
2712
2713
2714
2715
2716
2717
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2711

def init_jaxb_json_hash(_o)
  @id = String.from_json(_o['id']) unless _o['id'].nil?
  @action = String.from_json(_o['action']) unless _o['action'].nil?
  @name = String.from_json(_o['name']) unless _o['name'].nil?
  @accessNumber = String.from_json(_o['accessNumber']) unless _o['accessNumber'].nil?
  @birth = String.from_json(_o['birth']) unless _o['birth'].nil?
end

#to_jaxb_json_hashObject

the json hash for this Proxy



2695
2696
2697
2698
2699
2700
2701
2702
2703
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2695

def to_jaxb_json_hash
  _h = {}
  _h['id'] = id.to_jaxb_json_hash unless id.nil?
  _h['action'] = action.to_jaxb_json_hash unless action.nil?
  _h['name'] = name.to_jaxb_json_hash unless name.nil?
  _h['accessNumber'] = accessNumber.to_jaxb_json_hash unless accessNumber.nil?
  _h['birth'] = birth.to_jaxb_json_hash unless birth.nil?
  return _h
end

#to_jsonObject

the json (string form) for this Proxy



2706
2707
2708
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2706

def to_json
  to_jaxb_json_hash.to_json
end