Class: JustimmoClient::V1::RealtyType
Methods included from Utils
#autoload_dir, #translate
Methods included from Logging
default_logger, #logger, rails_logger
Instance Method Details
#id ⇒ Integer
9
|
# File 'lib/justimmo_client/api/v1/models/realty_type.rb', line 9
attribute :id, Integer
|
#name ⇒ Symbol
10
|
# File 'lib/justimmo_client/api/v1/models/realty_type.rb', line 10
attribute :name, Symbol
|
#to_s ⇒ Object
16
17
18
|
# File 'lib/justimmo_client/api/v1/models/realty_type.rb', line 16
def to_s
translated
end
|
#translated ⇒ Object
12
13
14
|
# File 'lib/justimmo_client/api/v1/models/realty_type.rb', line 12
def translated
translate("types.#{@name}")
end
|