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

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

#resolutionUriObject

authentication resolution URI.



707
708
709
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 707

def resolutionUri
  @resolutionUri
end

#statusObject

authentication status.



705
706
707
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 705

def status
  @status
end

Class Method Details

.from_json(o) ⇒ Object

constructs a Authentication from a (parsed) JSON hash



729
730
731
732
733
734
735
736
737
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 729

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



723
724
725
726
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 723

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

#to_jaxb_json_hashObject

the json hash for this Authentication



710
711
712
713
714
715
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 710

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

#to_jsonObject

the json (string form) for this Authentication



718
719
720
# File 'lib/ruby-fs-stack/enunciate/identity.rb', line 718

def to_json
  to_jaxb_json_hash.to_json
end