Class: JustimmoClient::V1::RealtyUsage
Instance Method Summary
collapse
#==, #save!, #to_h
Methods included from Utils
#autoload_dir, #translate
Methods included from Logging
default_logger, #logger, rails_logger
Instance Method Details
#business ⇒ Boolean
21
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 21
attribute :business, Boolean
|
#business? ⇒ Boolean
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 10
|
#investment ⇒ Boolean
22
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 22
attribute :investment, Boolean
|
#investment? ⇒ Boolean
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 14
|
#living ⇒ Boolean
20
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 20
attribute :living, Boolean
|
#living? ⇒ Boolean
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 6
|
#map(&block) ⇒ Object
30
31
32
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 30
def map(&block)
to_a.map(&block)
end
|
#to_a ⇒ Object
26
27
28
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 26
def to_a
attributes.select { |_k, v| v }.keys
end
|
#to_s ⇒ Object
38
39
40
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 38
def to_s
translated.join(", ")
end
|
#translated ⇒ Object
34
35
36
|
# File 'lib/justimmo_client/api/v1/models/realty_usage.rb', line 34
def translated
map { |x| translate(x) }
end
|