Class: Org::Familysearch::Ws::Familytree::V2::Schema::Proxy
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A proxy for a user.
Instance Attribute Summary collapse
-
#accessNumber ⇒ Object
Access number of the user being proxied.
-
#action ⇒ Object
The update action to perform on the proxy.
-
#birth ⇒ Object
Birth date of the user to be proxied.
-
#id ⇒ Object
Id of the user that is being proxied.
-
#name ⇒ Object
Name of the user being proxied.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a Proxy from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this Proxy with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this Proxy.
-
#to_json ⇒ Object
the json (string form) for this Proxy.
Instance Attribute Details
#accessNumber ⇒ Object
Access number of the user being proxied.
2690 2691 2692 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2690 def accessNumber @accessNumber end |
#action ⇒ Object
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 |
#birth ⇒ Object
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 |
#id ⇒ Object
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 |
#name ⇒ Object
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_hash ⇒ Object
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_json ⇒ Object
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 |