Sha256: b314deedd3d5fc2b10f10c709f676abea23760a5be5041bdc684020b8bfd41bb

Contents?: true

Size: 214 Bytes

Versions: 1

Compression:

Stored size: 214 Bytes

Contents

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

        def to_compact_hash
          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.beta2 lib/telegram/bot/types/base.rb