Class: Justimmo::API::RealtyArea

Inherits:
Resource
  • Object
show all
Defined in:
lib/justimmo/api/v1/realty/realty_area.rb

Overview

Holds information about area size and count.

Instance Method Summary collapse

Methods inherited from Resource

class_name, from_json, mapper, query, #to_h, #to_json

Constructor Details

#initialize(options = {}) ⇒ RealtyArea


8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/justimmo/api/v1/realty/realty_area.rb', line 8

def initialize(options = {})
  @attributes = i[
    room_count living_area floor_area sales_area property_area surface_area
    total_area toilet_room_count bathroom_count store_room_count
    garden_area office_area storage_area cellar_area terrace_count
    terrace_area balcony_count balcony_area balcony_terrace_count
    balcony_terrace_area loggia_count loggia_area garage_count garage_area
    parking_count parking_area
  ]

  super(options)
end