Class: Moves::Client
- Inherits:
-
Object
- Object
- Moves::Client
- Defined in:
- lib/moves.rb
Constant Summary collapse
- ENDPOINT =
"https://api.moves-app.com/api/1.1/"
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
Instance Method Summary collapse
- #activity_list ⇒ Object
- #daily_activities(*args) ⇒ Object
- #daily_places(*args) ⇒ Object
- #daily_storyline(*args) ⇒ Object
- #daily_summary(*args) ⇒ Object
-
#initialize(access_token) ⇒ Client
constructor
A new instance of Client.
- #profile ⇒ Object
Constructor Details
#initialize(access_token) ⇒ Client
Returns a new instance of Client.
11 12 13 |
# File 'lib/moves.rb', line 11 def initialize(access_token) @access_token = access_token end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
7 8 9 |
# File 'lib/moves.rb', line 7 def access_token @access_token end |
Instance Method Details
#activity_list ⇒ Object
35 36 37 |
# File 'lib/moves.rb', line 35 def activity_list get "activities" end |
#daily_activities(*args) ⇒ Object
23 24 25 |
# File 'lib/moves.rb', line 23 def daily_activities(*args) get_range "user/activities/daily", *args end |
#daily_places(*args) ⇒ Object
27 28 29 |
# File 'lib/moves.rb', line 27 def daily_places(*args) get_range "user/places/daily", *args end |
#daily_storyline(*args) ⇒ Object
31 32 33 |
# File 'lib/moves.rb', line 31 def daily_storyline(*args) get_range "user/storyline/daily", *args end |
#daily_summary(*args) ⇒ Object
19 20 21 |
# File 'lib/moves.rb', line 19 def daily_summary(*args) get_range "user/summary/daily", *args end |
#profile ⇒ Object
15 16 17 |
# File 'lib/moves.rb', line 15 def profile get "user/profile" end |