Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/measures/view_data/resources/va3c.rb,
lib/measures/view_model/resources/va3c.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



10
11
12
13
14
# File 'lib/measures/view_data/resources/va3c.rb', line 10

def to_h
  h = {}
  self.class.members.each { |m| h[m.to_sym] = self[m] }
  return h
end