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

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

Overview

A postal address.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#address1Object

The first address field for the postal address.



2761
2762
2763
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2761

def address1
  @address1
end

#address2Object

The second address field for the postal address.



2763
2764
2765
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2763

def address2
  @address2
end

#address3Object

The third address field for the postal address.



2765
2766
2767
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2765

def address3
  @address3
end

#address4Object

The fourth address field for the postal address.



2767
2768
2769
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2767

def address4
  @address4
end

#cityObject

The city.



2775
2776
2777
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2775

def city
  @city
end

#countryObject

The country.



2781
2782
2783
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2781

def country
  @country
end

#countryIsoObject

(no documentation provided)



2783
2784
2785
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2783

def countryIso
  @countryIso
end

#postalCodeObject

The postal code.



2785
2786
2787
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2785

def postalCode
  @postalCode
end

#provinceObject

The province.



2777
2778
2779
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2777

def province
  @province
end

#provinceIsoObject

(no documentation provided)



2779
2780
2781
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2779

def provinceIso
  @provinceIso
end

#street1Object

The first street field for the postal street.



2769
2770
2771
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2769

def street1
  @street1
end

#street2Object

The second street field for the postal street.



2771
2772
2773
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2771

def street2
  @street2
end

#street3Object

The third street field for the postal street.



2773
2774
2775
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2773

def street3
  @street3
end

#typeObject

(no documentation provided)



2759
2760
2761
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2759

def type
  @type
end

Class Method Details

.from_json(o) ⇒ Object

constructs a PostalAddress from a (parsed) JSON hash



2831
2832
2833
2834
2835
2836
2837
2838
2839
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2831

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



2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2813

def init_jaxb_json_hash(_o)
  @type = String.from_json(_o['type']) unless _o['type'].nil?
  @address1 = String.from_json(_o['address1']) unless _o['address1'].nil?
  @address2 = String.from_json(_o['address2']) unless _o['address2'].nil?
  @address3 = String.from_json(_o['address3']) unless _o['address3'].nil?
  @address4 = String.from_json(_o['address4']) unless _o['address4'].nil?
  @street1 = String.from_json(_o['street1']) unless _o['street1'].nil?
  @street2 = String.from_json(_o['street2']) unless _o['street2'].nil?
  @street3 = String.from_json(_o['street3']) unless _o['street3'].nil?
  @city = String.from_json(_o['city']) unless _o['city'].nil?
  @province = String.from_json(_o['province']) unless _o['province'].nil?
  @provinceIso = String.from_json(_o['provinceIso']) unless _o['provinceIso'].nil?
  @country = String.from_json(_o['country']) unless _o['country'].nil?
  @countryIso = String.from_json(_o['countryIso']) unless _o['countryIso'].nil?
  @postalCode = String.from_json(_o['postalCode']) unless _o['postalCode'].nil?
end

#to_jaxb_json_hashObject

the json hash for this PostalAddress



2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2788

def to_jaxb_json_hash
  _h = {}
  _h['type'] = type.to_jaxb_json_hash unless type.nil?
  _h['address1'] = address1.to_jaxb_json_hash unless address1.nil?
  _h['address2'] = address2.to_jaxb_json_hash unless address2.nil?
  _h['address3'] = address3.to_jaxb_json_hash unless address3.nil?
  _h['address4'] = address4.to_jaxb_json_hash unless address4.nil?
  _h['street1'] = street1.to_jaxb_json_hash unless street1.nil?
  _h['street2'] = street2.to_jaxb_json_hash unless street2.nil?
  _h['street3'] = street3.to_jaxb_json_hash unless street3.nil?
  _h['city'] = city.to_jaxb_json_hash unless city.nil?
  _h['province'] = province.to_jaxb_json_hash unless province.nil?
  _h['provinceIso'] = provinceIso.to_jaxb_json_hash unless provinceIso.nil?
  _h['country'] = country.to_jaxb_json_hash unless country.nil?
  _h['countryIso'] = countryIso.to_jaxb_json_hash unless countryIso.nil?
  _h['postalCode'] = postalCode.to_jaxb_json_hash unless postalCode.nil?
  return _h
end

#to_jsonObject

the json (string form) for this PostalAddress



2808
2809
2810
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2808

def to_json
  to_jaxb_json_hash.to_json
end