class Telegram::Params::ForwardFrom

Public Class Methods

new(params) click to toggle source
Calls superclass method
# File lib/telegram/params/forward_from.rb, line 6
def initialize(params)
  message = params.require(:message)
  @params = message[:forward_from]
  # If from exist then return nil
  return nil if @params.blank?

  forward_from_params = message.require(:forward_from)
  super(forward_from_params)
end

Public Instance Methods

nil?() click to toggle source
Calls superclass method
# File lib/telegram/params/forward_from.rb, line 16
def nil?
  super || @params.nil?
end