Class: Binance::Utils::Faraday::Middleware::RSASignature

Inherits:
Struct
  • Object
show all
Defined in:
lib/binance/utils/faraday/middleware/rsa_signature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appObject

Returns the value of attribute app

Returns:

  • (Object)

    the current value of app



10
11
12
# File 'lib/binance/utils/faraday/middleware/rsa_signature.rb', line 10

def app
  @app
end

#authObject

Returns the value of attribute auth

Returns:

  • (Object)

    the current value of auth



10
11
12
# File 'lib/binance/utils/faraday/middleware/rsa_signature.rb', line 10

def auth
  @auth
end

Instance Method Details

#call(env) ⇒ Object



11
12
13
14
# File 'lib/binance/utils/faraday/middleware/rsa_signature.rb', line 11

def call(env)
  env.url.query = Url.add_param(env.url.query, 'signature', auth.rsa_sign(env.url.query))
  app.call env
end