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

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

#idObject

(no documentation provided)



322
323
324
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 322

def id
  @id
end

#nameObject

(no documentation provided)



324
325
326
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 324

def name
  @name
end

Class Method Details

.from_json(o) ⇒ Object

constructs a UserPermission from a (parsed) JSON hash



346
347
348
349
350
351
352
353
354
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 346

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



340
341
342
343
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 340

def init_jaxb_json_hash(_o)
  @id = String.from_json(_o['id']) unless _o['id'].nil?
  @name = String.from_json(_o['name']) unless _o['name'].nil?
end

#to_jaxb_json_hashObject

the json hash for this UserPermission



327
328
329
330
331
332
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 327

def to_jaxb_json_hash
  _h = {}
  _h['id'] = id.to_jaxb_json_hash unless id.nil?
  _h['name'] = name.to_jaxb_json_hash unless name.nil?
  return _h
end

#to_jsonObject

the json (string form) for this UserPermission



335
336
337
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 335

def to_json
  to_jaxb_json_hash.to_json
end