Class: JustimmoClient::V1::RealtyArea

Inherits:
JustimmoBase show all
Defined in:
lib/justimmo_client/api/v1/models/realty_area.rb

Attributes collapse

Instance Method Summary collapse

Methods included from Utils

#autoload_dir, #translate

Methods included from Logging

default_logger, #logger, rails_logger

Instance Method Details

#balconyFloat

Returns:

  • (Float)


10
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 10

attribute :balcony,         Float

#balcony_terraceFloat

Returns:

  • (Float)


9
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 9

attribute :balcony_terrace, Float

#basementFloat

Returns:

  • (Float)


17
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 17

attribute :basement,        Float

#buildableFloat

Returns:

  • (Float)


23
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 23

attribute :buildable,       Float

#each(&block) ⇒ Object



41
42
43
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 41

def each(&block)
  attributes.each(&block)
end

#floorFloat

Returns:

  • (Float)


20
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 20

attribute :floor,           Float

#garageFloat

Returns:

  • (Float)


12
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 12

attribute :garage,          Float

#gardenFloat

Returns:

  • (Float)


13
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 13

attribute :garden,          Float

#inspectObject



37
38
39
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 37

def inspect
  "#<#{self.class} #{self}>"
end

#livingFloat

Returns:

  • (Float)


25
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 25

attribute :living,          Float

#loggiaFloat

Returns:

  • (Float)


19
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 19

attribute :loggia,          Float

#map(&block) ⇒ Object



45
46
47
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 45

def map(&block)
  attributes.map(&block)
end

#officeFloat

Returns:

  • (Float)


11
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 11

attribute :office,          Float

#parkingFloat

Returns:

  • (Float)


21
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 21

attribute :parking,         Float

#propertyFloat

Returns:

  • (Float)


16
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 16

attribute :property,        Float

#salesFloat

Returns:

  • (Float)


24
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 24

attribute :sales,           Float

#storageFloat

Returns:

  • (Float)


18
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 18

attribute :storage,         Float

#surfaceFloat

Returns:

  • (Float)


15
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 15

attribute :surface,         Float

#terraceFloat

Returns:

  • (Float)


22
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 22

attribute :terrace,         Float

#to_fObject



29
30
31
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 29

def to_f
  living || floor
end

#to_sObject



33
34
35
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 33

def to_s
  to_f.to_s
end

#totalFloat

Returns:

  • (Float)


14
# File 'lib/justimmo_client/api/v1/models/realty_area.rb', line 14

attribute :total,           Float