Class: Telegem::Markup::ReplyKeyboard
- Inherits:
-
Object
- Object
- Telegem::Markup::ReplyKeyboard
- Defined in:
- lib/markup/keyboard.rb
Instance Method Summary collapse
-
#initialize(rows, options = {}) ⇒ ReplyKeyboard
constructor
A new instance of ReplyKeyboard.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(rows, options = {}) ⇒ ReplyKeyboard
Returns a new instance of ReplyKeyboard.
80 81 82 83 |
# File 'lib/markup/keyboard.rb', line 80 def initialize(rows, = {}) @rows = rows @options = end |
Instance Method Details
#to_h ⇒ Object
84 85 86 87 88 |
# File 'lib/markup/keyboard.rb', line 84 def to_h { keyboard: @rows }.merge(@options) end |
#to_json(*args) ⇒ Object
89 90 91 |
# File 'lib/markup/keyboard.rb', line 89 def to_json(*args) to_h.to_json(*args) end |