Sha256: 97eddf8d151ecb56ad39b2509d1c506cc270565f7d6f7c725e4669f348607b71

Contents?: true

Size: 216 Bytes

Versions: 1

Compression:

Stored size: 216 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
telegram-bot-types-0.6.1 lib/telegram/bot/types/base.rb