Class: SyncwiseApi::Requests::V1_0::UserLogin

Inherits:
Base
  • Object
show all
Defined in:
lib/syncwise_api/requests/V1_0/user_login.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL, Base::HOST_HEADER

Class Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, #send_request

Constructor Details

This class inherits a constructor from SyncwiseApi::Requests::V1_0::Base

Class Attribute Details

.required_paramsObject (readonly)

Returns the value of attribute required_params.



13
14
15
# File 'lib/syncwise_api/requests/V1_0/user_login.rb', line 13

def required_params
  @required_params
end

.verbObject (readonly)

Returns the value of attribute verb.



13
14
15
# File 'lib/syncwise_api/requests/V1_0/user_login.rb', line 13

def verb
  @verb
end

Instance Method Details

#create_signatureObject

overrides create_signature in Base, because for this request only, no signature is possible since we don’t have a secret key yet. the service still requires a dummy value here, though, so just quickly return a valid, but dummy, signature string



19
20
21
# File 'lib/syncwise_api/requests/V1_0/user_login.rb', line 19

def create_signature
  'k8NipGDhzthk0EJRmHCBy2NcwSsC'
end