Method: Keymaker::Serialization#attributes
- Defined in:
- lib/keymaker/serialization.rb
#attributes ⇒ Object
41 42 43 44 45 |
# File 'lib/keymaker/serialization.rb', line 41 def attributes Hash.new{|h,k| h[k] = send(k) }.tap do |hash| self.class.properties.each{|property| hash[property.to_s] } end end |