Class: Org::Familysearch::Ws::Identity::V2a::Schema::SessionValue

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-fs-stack/enunciate/identity.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

session value name.



259
260
261
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 259

def name
  @name
end

#valueObject

session value value.



261
262
263
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 261

def value
  @value
end

Class Method Details

.from_json(o) ⇒ Object

constructs a SessionValue from a (parsed) JSON hash



283
284
285
286
287
288
289
290
291
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 283

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 SessionValue with a json hash



277
278
279
280
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 277

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_hashObject

the json hash for this SessionValue



264
265
266
267
268
269
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 264

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_jsonObject

the json (string form) for this SessionValue



272
273
274
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 272

def to_json
  to_jaxb_json_hash.to_json
end