class Nexpose::WebCredentials::Header
Object that represents Header
name-value pairs, associated with Web Session Authentication.
Attributes
name[R]
Name, one per Header
value[R]
Value, one per Header
Public Class Methods
new(name, value)
click to toggle source
Construct with name value pair
# File lib/nexpose/web_credentials.rb, line 20 def initialize(name, value) @name = name @value = value end
Public Instance Methods
to_h()
click to toggle source
# File lib/nexpose/web_credentials.rb, line 29 def to_h header = {} header[@name] = @value header end
to_json()
click to toggle source
# File lib/nexpose/web_credentials.rb, line 25 def to_json JSON.generate(to_h) end