Class: Org::Familysearch::Ws::Identity::V2a::Schema::IdentityProperty
- Defined in:
- lib/ruby-fs-stack/enunciate/identity.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
(no documentation provided).
-
#value ⇒ Object
(no documentation provided).
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a IdentityProperty from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this IdentityProperty with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this IdentityProperty.
-
#to_json ⇒ Object
the json (string form) for this IdentityProperty.
Instance Attribute Details
#name ⇒ Object
(no documentation provided)
1120 1121 1122 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1120 def name @name end |
#value ⇒ Object
(no documentation provided)
1122 1123 1124 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1122 def value @value end |
Class Method Details
.from_json(o) ⇒ Object
constructs a IdentityProperty from a (parsed) JSON hash
1144 1145 1146 1147 1148 1149 1150 1151 1152 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1144 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 IdentityProperty with a json hash
1138 1139 1140 1141 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1138 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 IdentityProperty
1125 1126 1127 1128 1129 1130 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1125 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 IdentityProperty
1133 1134 1135 |
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1133 def to_json to_jaxb_json_hash.to_json end |