Class: MyTado::Request::Presence

Inherits:
AbstractRequest show all
Defined in:
lib/my_tado/request/presence.rb

Overview

Calls the /state endpoint, which returns 1 key called presence

Instance Attribute Summary

Attributes inherited from AbstractRequest

#options

Instance Method Summary collapse

Methods inherited from AbstractRequest

#body, #call, #initialize, #klass_name, #method, requires_home_id_param?

Constructor Details

This class inherits a constructor from MyTado::Request::AbstractRequest

Instance Method Details

#endpointObject



7
8
9
# File 'lib/my_tado/request/presence.rb', line 7

def endpoint
  "/v2/homes/#{options[:home_id]}/state"
end