Class: Org::Familysearch::Ws::Familytree::V2::Schema::Repository
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
Source Repository
Instance Attribute Summary collapse
-
#address ⇒ Object
The repository address.
-
#comment ⇒ Object
The repository comment.
-
#fax ⇒ Object
The repository fax number.
-
#name ⇒ Object
the repository name.
-
#phone ⇒ Object
The repository phone number.
-
#type ⇒ Object
The repository type.
-
#url ⇒ Object
The repository URL.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a Repository from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this Repository with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this Repository.
-
#to_json ⇒ Object
the json (string form) for this Repository.
Instance Attribute Details
#address ⇒ Object
The repository address.
3999 4000 4001 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3999 def address @address end |
#comment ⇒ Object
The repository comment
4005 4006 4007 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4005 def comment @comment end |
#fax ⇒ Object
The repository fax number.
4003 4004 4005 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4003 def fax @fax end |
#name ⇒ Object
the repository name.
3995 3996 3997 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3995 def name @name end |
#phone ⇒ Object
The repository phone number.
4001 4002 4003 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4001 def phone @phone end |
#type ⇒ Object
The repository type.
3993 3994 3995 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3993 def type @type end |
#url ⇒ Object
The repository URL.
3997 3998 3999 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3997 def url @url end |
Class Method Details
.from_json(o) ⇒ Object
constructs a Repository from a (parsed) JSON hash
4037 4038 4039 4040 4041 4042 4043 4044 4045 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4037 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 Repository with a json hash
4026 4027 4028 4029 4030 4031 4032 4033 4034 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4026 def init_jaxb_json_hash(_o) @type = String.from_json(_o['type']) unless _o['type'].nil? @name = String.from_json(_o['name']) unless _o['name'].nil? @url = String.from_json(_o['url']) unless _o['url'].nil? @address = Org::Familysearch::Ws::Familytree::V2::Schema::PostalAddress.from_json(_o['address']) unless _o['address'].nil? @phone = String.from_json(_o['phone']) unless _o['phone'].nil? @fax = String.from_json(_o['fax']) unless _o['fax'].nil? @comment = String.from_json(_o['comment']) unless _o['comment'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this Repository
4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4008 def to_jaxb_json_hash _h = {} _h['type'] = type.to_jaxb_json_hash unless type.nil? _h['name'] = name.to_jaxb_json_hash unless name.nil? _h['url'] = url.to_jaxb_json_hash unless url.nil? _h['address'] = address.to_jaxb_json_hash unless address.nil? _h['phone'] = phone.to_jaxb_json_hash unless phone.nil? _h['fax'] = fax.to_jaxb_json_hash unless fax.nil? _h['comment'] = comment.to_jaxb_json_hash unless comment.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this Repository
4021 4022 4023 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4021 def to_json to_jaxb_json_hash.to_json end |