Class: ReplyKeyboardHide
- Inherits:
-
Object
- Object
- ReplyKeyboardHide
- Defined in:
- lib/telegramObjects.rb
Instance Attribute Summary collapse
-
#hide_keyboard ⇒ Object
Returns the value of attribute hide_keyboard.
-
#selective ⇒ Object
Returns the value of attribute selective.
Instance Method Summary collapse
-
#initialize(json) ⇒ ReplyKeyboardHide
constructor
A new instance of ReplyKeyboardHide.
- #to_json ⇒ Object
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_keyboard ⇒ Object
Returns the value of attribute hide_keyboard.
192 193 194 |
# File 'lib/telegramObjects.rb', line 192 def hide_keyboard @hide_keyboard end |
#selective ⇒ Object
Returns the value of attribute selective.
192 193 194 |
# File 'lib/telegramObjects.rb', line 192 def selective @selective end |
Instance Method Details
#to_json ⇒ Object
199 200 201 |
# File 'lib/telegramObjects.rb', line 199 def to_json "{\"hide_keyboard\":true, \"selective\":"+(!@selective ? "false" : "true")+"}" end |