class Telegram::Params::ForwardChat
Public Class Methods
new(params)
click to toggle source
Calls superclass method
# File lib/telegram/params/forward_chat.rb, line 6 def initialize(params) message = params.require(:message) @params = message[:forward_from_chat] # If from exist then return nil return nil if @params.blank? forward_from_params = message.require(:forward_from_chat) super(forward_from_params) end
Public Instance Methods
nil?()
click to toggle source
Calls superclass method
# File lib/telegram/params/forward_chat.rb, line 16 def nil? super || @params.nil? end