Class: WebBotAuth::MessageSignature::Component

Inherits:
Struct
  • Object
show all
Defined in:
app/services/web_bot_auth/message_signature.rb

Overview

A single covered component: an HTTP field name (e.g. +signature-agent+) or
a derived component (e.g. +@authority+), its resolved value, and any
component parameters (e.g. +req: true+ to source it from the request).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:, params: {}) ⇒ Component

Returns a new instance of Component.



19
20
21
# File 'app/services/web_bot_auth/message_signature.rb', line 19

def initialize(name:, value:, params: {})
  super
end

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



18
19
20
# File 'app/services/web_bot_auth/message_signature.rb', line 18

def name
  @name
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



18
19
20
# File 'app/services/web_bot_auth/message_signature.rb', line 18

def params
  @params
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



18
19
20
# File 'app/services/web_bot_auth/message_signature.rb', line 18

def value
  @value
end