Class: Singly::Services::Fitbit

Inherits:
Object
  • Object
show all
Includes:
Endpoint, Service
Defined in:
lib/singly/api/services/fitbit.rb

Instance Attribute Summary

Attributes included from Endpoint

#options, #path

Instance Method Summary collapse

Methods included from Service

included, #service=, #service_endpoint

Methods included from Endpoint

#fetch, #initialize, #url, #validate

Instance Method Details

#activities(params = {}) ⇒ Object



12
13
14
# File 'lib/singly/api/services/fitbit.rb', line 12

def activities(params={})
  service_endpoint(__method__, params)
end

#devices(params = {}) ⇒ Object



16
17
18
# File 'lib/singly/api/services/fitbit.rb', line 16

def devices(params={})
  service_endpoint(__method__, params)
end

#fat(params = {}) ⇒ Object



20
21
22
# File 'lib/singly/api/services/fitbit.rb', line 20

def fat(params={})
  service_endpoint(__method__, params)
end

#self(params = {}) ⇒ Object



8
9
10
# File 'lib/singly/api/services/fitbit.rb', line 8

def self(params={})
  service_endpoint(__method__, params)
end

#sleep(params = {}) ⇒ Object



24
25
26
# File 'lib/singly/api/services/fitbit.rb', line 24

def sleep(params={})
  service_endpoint(__method__, params)
end

#weight(params = {}) ⇒ Object



28
29
30
# File 'lib/singly/api/services/fitbit.rb', line 28

def weight(params={})
  service_endpoint(__method__, params)
end