Module: C80MapFloors::FloorRepresentator::InstanceMethods
- Defined in:
- app/models/c80_map_floors/floor_representator.rb
Instance Method Summary collapse
-
#my_as_json3 ⇒ Object
noinspection RubyResolve.
Instance Method Details
#my_as_json3 ⇒ Object
noinspection RubyResolve
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'app/models/c80_map_floors/floor_representator.rb', line 58 def my_as_json3 result = { id: self.id, ord: self.ord, title: self.title, square: self.square, square_free: self.square_free, areas_count: self.areas.count, areas_free_count: self.areas.free_areas.count, price_string: self.price_string, floor_height: self.floor_height, communications: self.communications } result.as_json end |