Class: MyTado::Request::Me

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

Overview

Calls the /me endpoint

Instance Attribute Summary

Attributes inherited from AbstractRequest

#options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractRequest

#body, #call, #initialize, #klass_name, #method

Constructor Details

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

Class Method Details

.requires_home_id_param?Boolean

Returns:

  • (Boolean)


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

def self.requires_home_id_param?
  false
end

Instance Method Details

#endpointObject



11
12
13
# File 'lib/my_tado/request/me.rb', line 11

def endpoint
  "/v1/me"
end