Class: Telegram::BotManager::View
- Inherits:
-
Object
- Object
- Telegram::BotManager::View
- Defined in:
- lib/telegram/bot_manager/view.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ View
constructor
A new instance of View.
Constructor Details
#initialize(params = {}) ⇒ View
Returns a new instance of View.
9 10 11 12 13 14 15 |
# File 'lib/telegram/bot_manager/view.rb', line 9 def initialize(params={}) raise 'You need to pass hash to new view' unless params.is_a?(Hash) @params = params @content = String.new @markup = Hash.new end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
7 8 9 |
# File 'lib/telegram/bot_manager/view.rb', line 7 def content @content end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/telegram/bot_manager/view.rb', line 7 def params @params end |