Method: TelegramBot::ChatLocation#list_invalid_properties
- Defined in:
- lib/telegram-bot/models/chat_location.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/telegram-bot/models/chat_location.rb', line 82 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @location.nil? invalid_properties.push('invalid value for "location", location cannot be nil.') end if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end invalid_properties end |