Sha256: b79e0af52613065528fef00670682d566fa022efe71029e3556e89250f020b71

Contents?: true

Size: 247 Bytes

Versions: 2

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true

require 'virtus'

module Telegram
  module Bot
    module Types
      class Base
        include Virtus.model

        def to_hash(*)
          super.reject { |_k, v| v.nil? }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
telegram-bot-types-0.6.3 lib/telegram/bot/types/base.rb
telegram-bot-types-0.6.2 lib/telegram/bot/types/base.rb