Intervals can be initialized using the class constructor, various factory methods or from_string class method. The recommended way is to use the factory methods.