Class: ReplyKeyboardHide

Inherits:
Object
  • Object
show all
Defined in:
lib/telegramObjects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ReplyKeyboardHide

Returns a new instance of ReplyKeyboardHide.



193
194
195
196
197
# File 'lib/telegramObjects.rb', line 193

def initialize json
  return if !json
  @hide_keyboard = json["hide_keyboard"]
  @selective = json["selective"]
end

Instance Attribute Details

#hide_keyboardObject

Returns the value of attribute hide_keyboard.



192
193
194
# File 'lib/telegramObjects.rb', line 192

def hide_keyboard
  @hide_keyboard
end

#selectiveObject

Returns the value of attribute selective.



192
193
194
# File 'lib/telegramObjects.rb', line 192

def selective
  @selective
end

Instance Method Details

#to_jsonObject



199
200
201
# File 'lib/telegramObjects.rb', line 199

def to_json
  "{\"hide_keyboard\":true, \"selective\":"+(!@selective ? "false" : "true")+"}"
end