Class: Telegram::Bot::Types::WebhookInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/webhook_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_updatesObject

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_certificateObject

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_dateObject

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_messageObject

Returns the value of attribute last_error_message.



3
4
5
# File 'lib/telegram/bot/types/webhook_info.rb', line 3

def last_error_message
  @last_error_message
end

#max_connectionsObject

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_countObject

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

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/telegram/bot/types/webhook_info.rb', line 3

def url
  @url
end