Class: Privy::Authorization::WalletApiRequestSignatureInput

Inherits:
Data
  • Object
show all
Defined in:
lib/privy/authorization/authorization.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



23
24
25
# File 'lib/privy/authorization/authorization.rb', line 23

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



23
24
25
# File 'lib/privy/authorization/authorization.rb', line 23

def headers
  @headers
end

#methodObject (readonly)

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



23
24
25
# File 'lib/privy/authorization/authorization.rb', line 23

def method
  @method
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



23
24
25
# File 'lib/privy/authorization/authorization.rb', line 23

def url
  @url
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



23
24
25
# File 'lib/privy/authorization/authorization.rb', line 23

def version
  @version
end

Class Method Details

.build(method:, url:, body:, headers:) ⇒ Object



24
25
26
# File 'lib/privy/authorization/authorization.rb', line 24

def self.build(method:, url:, body:, headers:)
  new(version: 1, method: method.to_s.upcase, url: url, body: body, headers: headers.compact)
end