Sha256: 8d28c9b1c291570a7c52b7616217f8c4221992b914e9dea4c114bf68df571067

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

module Slatan
  module Mouth
    module Stars
      @category = 'stars'

      class << self
        ## @see https://api.slack.com/methods/stars.add
        def add(options={})
          send('add', options)
        end

        ## @see https://api.slack.com/methods/stars.remove
        def remove(options={})
          send('remove', options)
        end

        private
        def send(method, msg)
          Mouth.send(@category, method, msg)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slatan-0.2.2 lib/slatan/mouth/stars.rb
slatan-0.2.0 lib/slatan/mouth/stars.rb
slatan-0.1.0 lib/slatan/mouth/stars.rb