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

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-fs-stack/enunciate/familytree.rb

Overview

A search parameter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorityObject

authority id



4082
4083
4084
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4082

def authority
  @authority
end

#exactObject

exact Is this parameter exact.



4080
4081
4082
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4080

def exact
  @exact
end

#fieldObject

The field to which to apply the value of this parameter.



4078
4079
4080
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4078

def field
  @field
end

#relationshipObject

The relationship to the primary person of the person to which this parameter applies.



4076
4077
4078
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4076

def relationship
  @relationship
end

#valueObject

The value of the parameter.



4084
4085
4086
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4084

def value
  @value
end

Class Method Details

.from_json(o) ⇒ Object

constructs a SearchMatchParameter from a (parsed) JSON hash



4112
4113
4114
4115
4116
4117
4118
4119
4120
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4112

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



4103
4104
4105
4106
4107
4108
4109
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4103

def init_jaxb_json_hash(_o)
  @relationship = String.from_json(_o['relationship']) unless _o['relationship'].nil?
  @field = String.from_json(_o['field']) unless _o['field'].nil?
  @exact = Boolean.from_json(_o['exact']) unless _o['exact'].nil?
  @authority = Org::Familysearch::Ws::Familytree::V2::Schema::EntityReference.from_json(_o['authority']) unless _o['authority'].nil?
  @value = String.from_json(_o['value']) unless _o['value'].nil?
end

#to_jaxb_json_hashObject

the json hash for this SearchMatchParameter



4087
4088
4089
4090
4091
4092
4093
4094
4095
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4087

def to_jaxb_json_hash
  _h = {}
  _h['relationship'] = relationship.to_jaxb_json_hash unless relationship.nil?
  _h['field'] = field.to_jaxb_json_hash unless field.nil?
  _h['exact'] = exact.to_jaxb_json_hash unless exact.nil?
  _h['authority'] = authority.to_jaxb_json_hash unless authority.nil?
  _h['value'] = value.to_jaxb_json_hash unless value.nil?
  return _h
end

#to_jsonObject

the json (string form) for this SearchMatchParameter



4098
4099
4100
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4098

def to_json
  to_jaxb_json_hash.to_json
end