Sha256: 3afead5ce392c709e3c8ad96599a4d686aeb6653ea4053229cf5f6bdb63e8db6
Contents?: true
Size: 657 Bytes
Versions: 4
Compression:
Stored size: 657 Bytes
Contents
# frozen_string_literal: true require 'oura/utils/api' module Oura module Apis # UserInformation is user information. module UserInformation include ::Oura::Utils::Api REQUEST_PATH = '/v1/userinfo' # @example response body # { # "age": 27, # "weight": 80, # "gender": "male", # "email": "john.doe@the.domain" # } # @return [Oura::Model::UserInformation] def userinfo response_body = get(REQUEST_PATH).body symbolized_json = JSON.parse(response_body).symbolize_keys ::Oura::Model::UserInformation.new(symbolized_json) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
oura-0.1.8 | lib/oura/apis/user_information.rb |
oura-0.1.7 | lib/oura/apis/user_information.rb |
oura-0.1.6 | lib/oura/apis/user_information.rb |
oura-0.1.5 | lib/oura/apis/user_information.rb |