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

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dateObject

(no documentation provided)



4512
4513
4514
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4512

def date
  @date
end

#versionObject

(no documentation provided)



4510
4511
4512
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4510

def version
  @version
end

Class Method Details

.from_json(o) ⇒ Object

constructs a UserTerms from a (parsed) JSON hash



4534
4535
4536
4537
4538
4539
4540
4541
4542
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4534

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



4528
4529
4530
4531
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4528

def init_jaxb_json_hash(_o)
  @version = String.from_json(_o['version']) unless _o['version'].nil?
  @date = Time.from_json(_o['date']) unless _o['date'].nil?
end

#to_jaxb_json_hashObject

the json hash for this UserTerms



4515
4516
4517
4518
4519
4520
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4515

def to_jaxb_json_hash
  _h = {}
  _h['version'] = version.to_jaxb_json_hash unless version.nil?
  _h['date'] = date.to_jaxb_json_hash unless date.nil?
  return _h
end

#to_jsonObject

the json (string form) for this UserTerms



4523
4524
4525
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4523

def to_json
  to_jaxb_json_hash.to_json
end