Class: JustimmoClient::V1::RealtyType

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

Attributes collapse

Methods included from Utils

#autoload_dir, #translate

Methods included from Logging

default_logger, #logger, rails_logger

Instance Method Details

#idInteger

Returns:

  • (Integer)


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

attribute :id,   Integer

#nameSymbol

Returns:

  • (Symbol)


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

attribute :name, Symbol

#to_sObject



16
17
18
# File 'lib/justimmo_client/api/v1/models/realty_type.rb', line 16

def to_s
  translated
end

#translatedObject



12
13
14
# File 'lib/justimmo_client/api/v1/models/realty_type.rb', line 12

def translated
  translate("types.#{@name}")
end