Sha256: 4844a708d878a5fe76e311390daf591900f422dd931afe6f431d041b35fed255

Contents?: true

Size: 272 Bytes

Versions: 2

Compression:

Stored size: 272 Bytes

Contents

module <%= class_name %>
  class Messenger
    attr_reader :api, :chat_id

    def initialize(args)
      @api = args.fetch(:api)
      @chat_id = args.fetch(:chat_id)
    end

    def send_text(text)
      api.send_message(chat_id: chat_id, text: text)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
botup-0.3.1 lib/botup/templates/messenger.erb
botup-0.2.0 lib/botup/templates/messenger.erb