Sha256: 61b726318495bbfa00f1a91b3d5f562a47b332d430158eff430c6c22f5f382ee
Contents?: true
Size: 309 Bytes
Versions: 2
Compression:
Stored size: 309 Bytes
Contents
# frozen_string_literal: true module Telegram module Bot module Types class <%= name %> < Base <% attributes.each_pair do |name, properties| %> <%= "#{properties[:required] ? 'attribute' : 'attribute?'} :#{name}, #{properties[:type]}" %> <% end %> end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
telegram-bot-ruby-2.2.0 | rakelib/templates/type.erb |
telegram-bot-ruby-2.1.0 | utility/type.erb |