# PLEASE DO NOT EDIT THIS CODE
# This code was generated using the UMPLE @UMPLE_VERSION@ modeling language!
# NOTE: Ruby generator is experimental and is missing some features available in
# in other Umple generated languages like Java or PHP

module Example

class OneToMany


  #------------------------
  # MEMBER VARIABLES
  #------------------------

  #OneToMany Associations - for documentation purposes
  #attr_reader :oneToMany

  #------------------------
  # CONSTRUCTOR
  #------------------------

  def initialize(a_oneToMany)
    @initialized = false
    @deleted = false
    unless set_oneToMany(a_oneToMany)
      raise "Unable to create OneToMany due to a_oneToMany. See https://manual.umple.org?RE002ViolationofAssociationMultiplicity.html" 
    end
    @initialized = true
  end

  #------------------------
  # INTERFACE
  #------------------------

  def get_oneToMany
    @oneToMany
  end

  def set_oneToMany(a_new_oneToMany)
    was_set = false
    unless a_new_oneToMany.nil?
      @oneToMany = a_new_oneToMany
      was_set = true
    end
    was_set
  end

  def delete
    @deleted = true
    @oneToMany = nil
  end

end
end
