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

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

#codeObject

(no documentation provided)



1183
1184
1185
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1183

def code
  @code
end

#detailsObject

(no documentation provided)



1189
1190
1191
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1189

def details
  @details
end

#messageObject

(no documentation provided)



1187
1188
1189
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1187

def message
  @message
end

#subcodeObject

(no documentation provided)



1185
1186
1187
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1185

def subcode
  @subcode
end

Class Method Details

.from_json(o) ⇒ Object

constructs a IdentityStatus from a (parsed) JSON hash



1215
1216
1217
1218
1219
1220
1221
1222
1223
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1215

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



1207
1208
1209
1210
1211
1212
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1207

def init_jaxb_json_hash(_o)
  @code = Fixnum.from_json(_o['code']) unless _o['code'].nil?
  @subcode = Fixnum.from_json(_o['subcode']) unless _o['subcode'].nil?
  @message = String.from_json(_o['message']) unless _o['message'].nil?
  @details = String.from_json(_o['details']) unless _o['details'].nil?
end

#to_jaxb_json_hashObject

the json hash for this IdentityStatus



1192
1193
1194
1195
1196
1197
1198
1199
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1192

def to_jaxb_json_hash
  _h = {}
  _h['code'] = code.to_jaxb_json_hash unless code.nil?
  _h['subcode'] = subcode.to_jaxb_json_hash unless subcode.nil?
  _h['message'] = message.to_jaxb_json_hash unless message.nil?
  _h['details'] = details.to_jaxb_json_hash unless details.nil?
  return _h
end

#to_jsonObject

the json (string form) for this IdentityStatus



1202
1203
1204
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 1202

def to_json
  to_jaxb_json_hash.to_json
end