Class: Org::Familysearch::Ws::Familytree::V2::Schema::SourceField
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
Source Field
Instance Attribute Summary collapse
-
#type ⇒ Object
(no documentation provided).
-
#value ⇒ Object
(no documentation provided).
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a SourceField from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this SourceField with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this SourceField.
-
#to_json ⇒ Object
the json (string form) for this SourceField.
Instance Attribute Details
#type ⇒ Object
(no documentation provided)
4325 4326 4327 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4325 def type @type end |
#value ⇒ Object
(no documentation provided)
4327 4328 4329 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4327 def value @value end |
Class Method Details
.from_json(o) ⇒ Object
constructs a SourceField from a (parsed) JSON hash
4349 4350 4351 4352 4353 4354 4355 4356 4357 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4349 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 SourceField with a json hash
4343 4344 4345 4346 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4343 def init_jaxb_json_hash(_o) @type = String.from_json(_o['type']) unless _o['type'].nil? @value = String.from_json(_o['value']) unless _o['value'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this SourceField
4330 4331 4332 4333 4334 4335 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4330 def to_jaxb_json_hash _h = {} _h['type'] = type.to_jaxb_json_hash unless type.nil? _h['value'] = value.to_jaxb_json_hash unless value.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this SourceField
4338 4339 4340 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4338 def to_json to_jaxb_json_hash.to_json end |