Method: Agave::Local::Item#attributes
- Defined in:
- lib/agave/local/item.rb
#attributes ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/agave/local/item.rb', line 45 def attributes fields.each_with_object( ActiveSupport::HashWithIndifferentAccess.new ) do |field, acc| acc[field.api_key.to_sym] = send(field.api_key) end end |