Class: Org::Familysearch::Ws::Familytree::V2::Schema::UserPreference

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

Overview

Created by IntelliJ IDEA. User: kuehneds Date: Oct 6, 2008 Time: 4:16:16 PM To change this template use File | Settings | File Templates.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

(no documentation provided)



4388
4389
4390
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4388

def name
  @name
end

#valueObject

(no documentation provided)



4390
4391
4392
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4390

def value
  @value
end

Class Method Details

.from_json(o) ⇒ Object

constructs a UserPreference from a (parsed) JSON hash



4412
4413
4414
4415
4416
4417
4418
4419
4420
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4412

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



4406
4407
4408
4409
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4406

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 UserPreference



4393
4394
4395
4396
4397
4398
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4393

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 UserPreference



4401
4402
4403
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4401

def to_json
  to_jaxb_json_hash.to_json
end