Sha256: fae079a1e0c8b7858c26089a79700bb599e7edb963ebe2904895fa3736899067

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

require 'flattr/user'

module Flattr
  class Client
    module Users

      def user(username=nil)
        user = username || self.current_user.username
        user = get("/rest/v2/users/#{user}")
        Flattr::User.new(user)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flattr-0.2.2 lib/flattr/client/users.rb
flattr-0.2.1 lib/flattr/client/users.rb