Sha256: e90a5200f5020a36293292501f47887541cbe2c8fc13b511efa2e8a57ad0a846

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

module FitbitAPI
  class Client
    def profile
      get("user/#{user_id}/profile.json")
    end

    def badges
      get("user/#{user_id}/badges.json")
    end

    def update_profile(body)
      post("user/#{user_id}/profile.json", body)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fitbit_api-0.12.0 lib/fitbit_api/user.rb
fitbit_api-0.11.0 lib/fitbit_api/user.rb