Sha256: 3e186d56768bd98488ea89f48363cfc012b45f13c2c85f9fe9b2f77d43933676
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true require 'httpx' module WordOfTheDay class Adapter class Base attr_reader :language def initialize(language) @language = language.downcase end def message if word "[#{word}](#{url}) (#{language.capitalize})" else "~~#{language.capitalize}~~" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rodbot-0.4.4 | lib/rodbot/plugins/word_of_the_day/lib/adapters/base.rb |