Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

som-timer ruby gem #50

Open
1 task done
sienna-kopf opened this issue Oct 29, 2020 · 0 comments
Open
1 task done

som-timer ruby gem #50

sienna-kopf opened this issue Oct 29, 2020 · 0 comments
Assignees
Labels
BE BE related tasks enhancement New feature or request Phase 4 due 11-02-2020 research Google away

Comments

@sienna-kopf
Copy link
Contributor

sienna-kopf commented Oct 29, 2020

Feature Categories:

  • Other: ruby gem

Describe the feature/Bug your gonna work on

  • Build a ruby gem that consumes our API and returns output when methods are called
  • see the Ruby Gem Repo

Usage

Pull down and run:

bundle install 

Remember to update/build gem run:

$ gem build som_timer.gemspec
$ gem install ./som-timer-0.0.0.gem

To jump into interactive ruby session and access endpoints:

$ irb 
> require 'som_timer'
# get one timer 
> SomTimer.one_timer("timers/1")
# get a random exercise 
> SomTimer.rand_exercise(<duration>, <category>)
# get all exercises 
> SomTimer.exercises
# update timer
> SomTimer.update_timer(<work_interval>, <rest_interval>, <sound>)

Helpful Documentation

Additional context
Add any other context or screenshots about the feature.

  • This is SO cool.
@sienna-kopf sienna-kopf added enhancement New feature or request BE BE related tasks research Google away Phase 4 due 11-02-2020 labels Oct 29, 2020
@sienna-kopf sienna-kopf self-assigned this Oct 29, 2020
@sienna-kopf sienna-kopf changed the title som-timer libraries som-timer ruby gem Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE BE related tasks enhancement New feature or request Phase 4 due 11-02-2020 research Google away
Projects
None yet
Development

No branches or pull requests

1 participant