Sha256: a99f44954638ee9476a0874e838b442675a336edbf65125db3f767355a1d6a69

Contents?: true

Size: 232 Bytes

Versions: 20

Compression:

Stored size: 232 Bytes

Contents

module Helium
  class Client
    module Users
      def user
        response = get('/user')
        user_data = JSON.parse(response.body)["data"]
        return User.new(client: self, params: user_data)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
helium-ruby-0.20.0 lib/helium/client/users.rb
helium-ruby-0.19.0 lib/helium/client/users.rb
helium-ruby-0.18.0 lib/helium/client/users.rb
helium-ruby-0.17.0 lib/helium/client/users.rb
helium-ruby-0.16.0 lib/helium/client/users.rb
helium-ruby-0.15.0 lib/helium/client/users.rb
helium-ruby-0.14.0 lib/helium/client/users.rb
helium-ruby-0.13.0 lib/helium/client/users.rb
helium-ruby-0.12.0 lib/helium/client/users.rb
helium-ruby-0.11.0 lib/helium/client/users.rb
helium-ruby-0.10.0 lib/helium/client/users.rb
helium-ruby-0.9.0 lib/helium/client/users.rb
helium-ruby-0.8.0 lib/helium/client/users.rb
helium-ruby-0.7.0 lib/helium/client/users.rb
helium-ruby-0.6.0 lib/helium/client/users.rb
helium-ruby-0.5.0 lib/helium/client/users.rb
helium-ruby-0.4.0 lib/helium/client/users.rb
helium-ruby-0.3.0 lib/helium/client/users.rb
helium-ruby-0.2.0 lib/helium/client/users.rb
helium-ruby-0.1.0 lib/helium/client/users.rb