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

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

#idObject

The stake id.



4451
4452
4453
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4451

def id
  @id
end

Class Method Details

.from_json(o) ⇒ Object

constructs a UserStake from a (parsed) JSON hash



4471
4472
4473
4474
4475
4476
4477
4478
4479
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4471

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



4466
4467
4468
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4466

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

#to_jaxb_json_hashObject

the json hash for this UserStake



4454
4455
4456
4457
4458
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4454

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

#to_jsonObject

the json (string form) for this UserStake



4461
4462
4463
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4461

def to_json
  to_jaxb_json_hash.to_json
end