Sha256: e118e520ce84b82265b90b28f45e7ff12c5a060eb5289c99542b3fa41af9a1ef

Contents?: true

Size: 456 Bytes

Versions: 17

Compression:

Stored size: 456 Bytes

Contents

module Totter
  class Client
    # Client methods for working with stickers.
    module Stickers
      # Get all of the users with a given sticker.
      #
      # @param sticker_name [String] the sticker to get users for
      # @return [Array] an array of `Hashie::Mash` objects representing users
      # @example
      #   Totter.sticker('staff')
      def sticker(sticker_name)
        get("stickers/#{sticker_name}").body
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
totter-0.4.6 lib/totter/client/stickers.rb
totter-0.4.5 lib/totter/client/stickers.rb
totter-0.4.4 lib/totter/client/stickers.rb
totter-0.4.3 lib/totter/client/stickers.rb
totter-0.4.2 lib/totter/client/stickers.rb
totter-0.4.1 lib/totter/client/stickers.rb
totter-0.4.0 lib/totter/client/stickers.rb
totter-0.3.9 lib/totter/client/stickers.rb
totter-0.3.8 lib/totter/client/stickers.rb
totter-0.3.7 lib/totter/client/stickers.rb
totter-0.3.6 lib/totter/client/stickers.rb
totter-0.3.5 lib/totter/client/stickers.rb
totter-0.3.4 lib/totter/client/stickers.rb
totter-0.3.3 lib/totter/client/stickers.rb
totter-0.3.2 lib/totter/client/stickers.rb
totter-0.3.1 lib/totter/client/stickers.rb
totter-0.3.0 lib/totter/client/stickers.rb