Class: Org::Familysearch::Ws::Identity::V2a::Schema::Name
- Defined in:
- lib/ruby-fs-stack/enunciate/identity.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
name type.
-
#value ⇒ Object
name value.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a Name from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this Name with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this Name.
-
#to_json ⇒ Object
the json (string form) for this Name.
Instance Attribute Details
#type ⇒ Object
name type.
196 197 198 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 196 def type @type end |
#value ⇒ Object
name value.
198 199 200 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 198 def value @value end |
Class Method Details
.from_json(o) ⇒ Object
constructs a Name from a (parsed) JSON hash
220 221 222 223 224 225 226 227 228 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 220 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 Name with a json hash
214 215 216 217 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 214 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 Name
201 202 203 204 205 206 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 201 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 Name
209 210 211 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 209 def to_json to_jaxb_json_hash.to_json end |