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

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)



137
138
139
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 137

def id
  @id
end

Class Method Details

.from_json(o) ⇒ Object

constructs a EntityReference from a (parsed) JSON hash



157
158
159
160
161
162
163
164
165
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 157

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



152
153
154
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 152

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 EntityReference



140
141
142
143
144
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 140

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 EntityReference



147
148
149
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 147

def to_json
  to_jaxb_json_hash.to_json
end