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

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

#addressObject

(no documentation provided)



2141
2142
2143
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2141

def address
  @address
end

#confirmationObject

(no documentation provided)



2133
2134
2135
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2133

def confirmation
  @confirmation
end

#idObject

The membership id.



2131
2132
2133
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2131

def id
  @id
end

#stakeObject

(no documentation provided)



2137
2138
2139
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2137

def stake
  @stake
end

#templeObject

(no documentation provided)



2139
2140
2141
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2139

def temple
  @temple
end

#wardObject

(no documentation provided)



2135
2136
2137
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2135

def ward
  @ward
end

Class Method Details

.from_json(o) ⇒ Object

constructs a UserMembership from a (parsed) JSON hash



2171
2172
2173
2174
2175
2176
2177
2178
2179
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2171

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



2161
2162
2163
2164
2165
2166
2167
2168
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2161

def init_jaxb_json_hash(_o)
  @id = String.from_json(_o['id']) unless _o['id'].nil?
  @confirmation = Org::Familysearch::Ws::Familytree::V2::Schema::GenDate.from_json(_o['confirmation']) unless _o['confirmation'].nil?
  @ward = Org::Familysearch::Ws::Familytree::V2::Schema::UserWard.from_json(_o['ward']) unless _o['ward'].nil?
  @stake = Org::Familysearch::Ws::Familytree::V2::Schema::UserStake.from_json(_o['stake']) unless _o['stake'].nil?
  @temple = Org::Familysearch::Ws::Familytree::V2::Schema::UserTemple.from_json(_o['temple']) unless _o['temple'].nil?
  @address = Org::Familysearch::Ws::Familytree::V2::Schema::PostalAddress.from_json(_o['address']) unless _o['address'].nil?
end

#to_jaxb_json_hashObject

the json hash for this UserMembership



2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2144

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

#to_jsonObject

the json (string form) for this UserMembership



2156
2157
2158
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2156

def to_json
  to_jaxb_json_hash.to_json
end