Method: Moo::Model::Side#to_hash

Defined in:
lib/moo/model/side.rb

#to_hashObject



43
44
45
46
47
48
49
50
# File 'lib/moo/model/side.rb', line 43

def to_hash
  hash = {
    sideNum:  side_num,
    templateCode:  template_code,
    type: type,
    data: data.map { |d| d.to_hash }
  }
end