class Nexpose::WebCredentials::HTMLForm
When using HTML form, this represents the login form information.
Attributes
action[R]
The HTTP action (URL) through which to submit the login form.
encType[R]
The HTTP encoding type with which to submit the form.
fields[R]
The fields in the HTML Form
method[R]
The HTTP request method with which to submit the form.
name[R]
The name of the form being submitted.
Public Class Methods
new(name, action, method, encType)
click to toggle source
# File lib/nexpose/web_credentials.rb, line 154 def initialize(name, action, method, encType) @name = name @action = action @method = method @encType = encType @fields = [] end
Public Instance Methods
add_field(field)
click to toggle source
# File lib/nexpose/web_credentials.rb, line 162 def add_field(field) @fields << field.to_h end
to_h()
click to toggle source
# File lib/nexpose/web_credentials.rb, line 170 def to_h { name: name, action: action, method: method, encType: encType, fields: fields, parentPage: action } end
to_json()
click to toggle source
# File lib/nexpose/web_credentials.rb, line 166 def to_json JSON.generate(to_h) end