Skip to content

Latest commit

 

History

History
52 lines (46 loc) · 2.02 KB

File metadata and controls

52 lines (46 loc) · 2.02 KB

WhatpulseSdk::UserResource

Properties

Name Type Description Notes
id Integer The unique identifier for the user.
username String The username of the user.
date_joined String The date the user joined WhatPulse, in ISO 8601 format.
first_pulse_date String The date of the first pulse, in ISO 8601 format.
last_pulse_date String The date of the last pulse, in ISO 8601 format.
pulses Integer The total number of pulses sent by the user.
team_id Integer The ID of the team the user is part of, if any.
team_is_manager Boolean Whether the user is a manager of their team.
country_id Integer The country ID of the user, used for geographical information.
is_premium Boolean Whether the user is an active premium member.
referrals Integer The number of referrals the user has made.
last_referral_date String The date of the last referral, in ISO 8601 format.
avatar String The user's avatar URL.
totals UserResourceTotals
ranks UserResourceRanks
include_in_rankings Boolean Whether the user is included in rankings.
distance_system String The system used for measuring distance (miles or kilometers).
last_pulse UserResourceLastPulse

Example

require 'whatpulse-sdk'

instance = WhatpulseSdk::UserResource.new(
  id: null,
  username: null,
  date_joined: null,
  first_pulse_date: null,
  last_pulse_date: null,
  pulses: null,
  team_id: null,
  team_is_manager: null,
  country_id: null,
  is_premium: null,
  referrals: null,
  last_referral_date: null,
  avatar: null,
  totals: null,
  ranks: null,
  include_in_rankings: null,
  distance_system: null,
  last_pulse: null
)