Class: Org::Familysearch::Ws::V1::BasicProperty
- Defined in:
- lib/ruby-fs-stack/enunciate/identity.rb,
lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A basic property.
Instance Attribute Summary collapse
-
#name ⇒ Object
(no documentation provided).
-
#value ⇒ Object
(no documentation provided).
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a BasicProperty from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this BasicProperty with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this BasicProperty.
-
#to_json ⇒ Object
the json (string form) for this BasicProperty.
Instance Attribute Details
#name ⇒ Object
(no documentation provided)
764 765 766 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 764 def name @name end |
#value ⇒ Object
(no documentation provided)
766 767 768 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 766 def value @value end |
Class Method Details
.from_json(o) ⇒ Object
constructs a BasicProperty from a (parsed) JSON hash
788 789 790 791 792 793 794 795 796 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 788 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 BasicProperty with a json hash
782 783 784 785 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 782 def init_jaxb_json_hash(_o) @name = String.from_json(_o['name']) unless _o['name'].nil? @value = String.from_json(_o['value']) unless _o['value'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this BasicProperty
769 770 771 772 773 774 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 769 def to_jaxb_json_hash _h = {} _h['name'] = name.to_jaxb_json_hash unless name.nil? _h['value'] = value.to_jaxb_json_hash unless value.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this BasicProperty
777 778 779 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 777 def to_json to_jaxb_json_hash.to_json end |