Sha256: d6af8824e8aa283e73e10f9b97fe8c4b20cda9def698a6158cf4baac6643b8f1

Contents?: true

Size: 217 Bytes

Versions: 1

Compression:

Stored size: 217 Bytes

Contents

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

        def compact_attributes
          attributes.dup.delete_if { |_, v| v.nil? }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
telegram-bot-ruby-0.5.0.beta1 lib/telegram/bot/types/base.rb