Class: ReplyKeyboardMarkup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ReplyKeyboardMarkup

Returns a new instance of ReplyKeyboardMarkup.



173
174
175
176
177
178
179
# File 'lib/telegramObjects.rb', line 173

def initialize json
  return if !json
  @keyboard = json["keyboard"]
  @resize_keyboard = json["resize_keyboard"]
  @one_time_keyboard = json["one_time_keyboard"]
  @selective = json["selective"]
end

Instance Attribute Details

#keyboardObject

Returns the value of attribute keyboard.



172
173
174
# File 'lib/telegramObjects.rb', line 172

def keyboard
  @keyboard
end

#one_time_keyboardObject

Returns the value of attribute one_time_keyboard.



172
173
174
# File 'lib/telegramObjects.rb', line 172

def one_time_keyboard
  @one_time_keyboard
end

#resize_keyboardObject

Returns the value of attribute resize_keyboard.



172
173
174
# File 'lib/telegramObjects.rb', line 172

def resize_keyboard
  @resize_keyboard
end

#selectiveObject

Returns the value of attribute selective.



172
173
174
# File 'lib/telegramObjects.rb', line 172

def selective
  @selective
end