Sha256: 4de1c36dc5488dd6032e4962d32d5869e3bfa22f51c5ac819cdc21d4c1adbaf9

Contents?: true

Size: 461 Bytes

Versions: 9

Compression:

Stored size: 461 Bytes

Contents

require 'flattr/language'

module Flattr
  class Client
    module Languages

      # Public: Returns available languages on flattr
      #
      # Examples
      #
      #   f = Flattr.new
      #   f.languages
      #   # => [Flattr::Language]
      #
      # Returns a Array with Flattr::Language inside
      def languages
        get("/rest/v2/languages").map do |language|
          Flattr::Language.new(language)
        end
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
flattr-0.3.7 lib/flattr/client/languages.rb
flattr-0.3.6 lib/flattr/client/languages.rb
flattr-0.3.5 lib/flattr/client/languages.rb
flattr-0.3.4 lib/flattr/client/languages.rb
flattr-0.3.3 lib/flattr/client/languages.rb
flattr-0.3.2 lib/flattr/client/languages.rb
flattr-0.3.1 lib/flattr/client/languages.rb
flattr-0.3.0 lib/flattr/client/languages.rb
flattr-0.2.3 lib/flattr/client/languages.rb