Class: Dino::Models::Base
- Inherits:
-
Hashie::Trash
- Object
- Hashie::Trash
- Dino::Models::Base
- Defined in:
- lib/dino/models/base.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.get_parsing_proc_for(klass) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/dino/models/base.rb', line 5 def self.get_parsing_proc_for(klass) ->(values) do if values.respond_to?(:to_ary) values.collect { |value| klass.new(value) } else klass.new(values) end end end |