Class: Telegram::Bot::Types::WebhookInfo
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::WebhookInfo
- Defined in:
- lib/telegram/bot/types/webhook_info.rb
Instance Attribute Summary collapse
-
#allowed_updates ⇒ Object
Returns the value of attribute allowed_updates.
-
#has_custom_certificate ⇒ Object
Returns the value of attribute has_custom_certificate.
-
#last_error_date ⇒ Object
Returns the value of attribute last_error_date.
-
#last_error_message ⇒ Object
Returns the value of attribute last_error_message.
-
#max_connections ⇒ Object
Returns the value of attribute max_connections.
-
#pending_update_count ⇒ Object
Returns the value of attribute pending_update_count.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ WebhookInfo
constructor
A new instance of WebhookInfo.
Constructor Details
#initialize(attributes) ⇒ WebhookInfo
Returns a new instance of WebhookInfo.
11 12 13 |
# File 'lib/telegram/bot/types/webhook_info.rb', line 11 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#allowed_updates ⇒ Object
Returns the value of attribute allowed_updates.
3 4 5 |
# File 'lib/telegram/bot/types/webhook_info.rb', line 3 def allowed_updates @allowed_updates end |
#has_custom_certificate ⇒ Object
Returns the value of attribute has_custom_certificate.
3 4 5 |
# File 'lib/telegram/bot/types/webhook_info.rb', line 3 def has_custom_certificate @has_custom_certificate end |
#last_error_date ⇒ Object
Returns the value of attribute last_error_date.
3 4 5 |
# File 'lib/telegram/bot/types/webhook_info.rb', line 3 def last_error_date @last_error_date end |
#last_error_message ⇒ Object
Returns the value of attribute last_error_message.
3 4 5 |
# File 'lib/telegram/bot/types/webhook_info.rb', line 3 def end |
#max_connections ⇒ Object
Returns the value of attribute max_connections.
3 4 5 |
# File 'lib/telegram/bot/types/webhook_info.rb', line 3 def max_connections @max_connections end |
#pending_update_count ⇒ Object
Returns the value of attribute pending_update_count.
3 4 5 |
# File 'lib/telegram/bot/types/webhook_info.rb', line 3 def pending_update_count @pending_update_count end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/telegram/bot/types/webhook_info.rb', line 3 def url @url end |