Class: Telegem::Markup::InlineKeyboard
- Inherits:
-
Object
- Object
- Telegem::Markup::InlineKeyboard
- Defined in:
- lib/markup/inline.rb
Instance Attribute Summary collapse
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Instance Method Summary collapse
-
#initialize(rows) ⇒ InlineKeyboard
constructor
A new instance of InlineKeyboard.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(rows) ⇒ InlineKeyboard
Returns a new instance of InlineKeyboard.
86 87 88 |
# File 'lib/markup/inline.rb', line 86 def initialize(rows) @rows = rows end |
Instance Attribute Details
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
85 86 87 |
# File 'lib/markup/inline.rb', line 85 def rows @rows end |
Instance Method Details
#to_h ⇒ Object
89 90 91 92 93 |
# File 'lib/markup/inline.rb', line 89 def to_h { inline_keyboard: @rows } end |
#to_json(*args) ⇒ Object
94 95 96 |
# File 'lib/markup/inline.rb', line 94 def to_json(*args) to_h.to_json(*args) end |