Module: Sense::Stats

Included in:
Client
Defined in:
lib/hello_sense/stats.rb

Instance Method Summary collapse

Instance Method Details

#unread_statsHash

Examples:

{
  "has_unread_insights" => true,
  "has_unanswered_questions" => true
}

Returns:

  • (Hash)


17
18
19
# File 'lib/hello_sense/stats.rb', line 17

def unread_stats
  get('/v1/app/stats/unread')
end

#update_stats(data) ⇒ Object



5
6
7
# File 'lib/hello_sense/stats.rb', line 5

def update_stats(data)
  patch('/v1/app/stats', data)
end