Nest Away
This does one thing. It sets your status to away or home.
Usage
Create the client:
require 'nest_away'
nest = NestAway::Client.new(email: 'joe@example.com', password: 'hunter2')
Change the away status:
nest.away?
nest.home?
nest.away!
nest.home!
Why?
As Nest expands its product line, and since they all tie into the idea of people being away/home, I thought it would be useful to have a small, effective API wrapper that did one thing well.
A possible use-case is to use IFTTT to make a recipe with the Alexa and Maker channels that will send this gem a request on Amazon's Lambda service.
Saying "Alexa, trigger Home" would send an HTTP request to Lambda using Maker which will trigger Lambda to run some code that instantiates a client that runs the Client#home!
method.