Class: Coach4rb::Builder::Entry
- Defined in:
- lib/coach4rb/builder.rb,
lib/coach4rb/builder.rb
Class Method Summary collapse
Methods inherited from Base
#initialize, #method_missing, #to_xml, #type
Constructor Details
This class inherits a constructor from Coach4rb::Builder::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Coach4rb::Builder::Base
Class Method Details
.builder(type) ⇒ Object
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/coach4rb/builder.rb', line 122 def self.builder(type) klass = case type when :running Running when :cycling Cycling when :boxing Boxing when :soccer Soccer else raise 'Error: %s is not supported!' % type end klass.new(public_visible: Privacy::Public) end |