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

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)



634
635
636
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 634

def id
  @id
end

#stakeObject

(no documentation provided)



638
639
640
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 638

def stake
  @stake
end

#templeDistrictObject

(no documentation provided)



640
641
642
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 640

def templeDistrict
  @templeDistrict
end

#wardObject

(no documentation provided)



636
637
638
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 636

def ward
  @ward
end

Class Method Details

.from_json(o) ⇒ Object

constructs a Member from a (parsed) JSON hash



666
667
668
669
670
671
672
673
674
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 666

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



658
659
660
661
662
663
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 658

def init_jaxb_json_hash(_o)
  @id = String.from_json(_o['id']) unless _o['id'].nil?
  @ward = Org::Familysearch::Ws::Identity::V2a::Schema::EntityReference.from_json(_o['ward']) unless _o['ward'].nil?
  @stake = Org::Familysearch::Ws::Identity::V2a::Schema::EntityReference.from_json(_o['stake']) unless _o['stake'].nil?
  @templeDistrict = Org::Familysearch::Ws::Identity::V2a::Schema::EntityReference.from_json(_o['templeDistrict']) unless _o['templeDistrict'].nil?
end

#to_jaxb_json_hashObject

the json hash for this Member



643
644
645
646
647
648
649
650
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 643

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

#to_jsonObject

the json (string form) for this Member



653
654
655
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 653

def to_json
  to_jaxb_json_hash.to_json
end