Module: C80MapFloors::BuildingRepresentator::InstanceMethods

Defined in:
app/models/c80_map_floors/building_representator.rb

Overview

noinspection ALL

Instance Method Summary collapse

Instance Method Details

#my_as_json6Object

выдать json Здания, которое привязано к полигону на карте



65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'app/models/c80_map_floors/building_representator.rb', line 65

def my_as_json6
  result = {
      id:             self.id,
      title:          self.title,
      square:         self.square,
      square_free:    self.square_free,
      desc:           self.desc,
      floor_height:   self.floor_height,
      price_string:   self.price_string,
      communications: self.communications
  }
  result.as_json
end