lib/ruby-fs-stack/familytree.rb in ruby-fs-stack-0.3.3 vs lib/ruby-fs-stack/familytree.rb in ruby-fs-stack-0.4.0

- old
+ new

@@ -998,13 +998,13 @@ # This method should really only be called from FamilytreeV2::Communicator#write_relationships # # ====Params # * <tt>options</tt> - requires the following: - # ** :type - 'parent', 'child', 'spouse' - # ** :with - ID of the person with whom you are making the relationship - # ** :lineage (optional) - 'Biological', 'Adoptive', etc. - # ** :event - a hash with values {:type => 'Marriage', :date => '15 Nov 2007', :place => 'Utah, United States'} + # * :type - 'parent', 'child', 'spouse' + # * :with - ID of the person with whom you are making the relationship + # * :lineage (optional) - 'Biological', 'Adoptive', etc. + # * :event - a hash with values {:type => 'Marriage', :date => '15 Nov 2007', :place => 'Utah, United States'} def create_relationship(options) raise ArgumentError, ":type option is required" if options[:type].nil? raise ArgumentError, ":with option is required" if options[:with].nil? add_relationships! self.relationships.add_relationship(options) \ No newline at end of file