Module: HockeyModel
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/hockey_model.rb
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
11 12 13 14 15 16 |
# File 'lib/hockey_model.rb', line 11 def attributes instance_variables.each_with_object({}) do |name, h| name = name[1..-1] h[name] = send(name) end end |