class Nexpose::WebCredentials::Field
When using HTML form, this represents the login form information.
Attributes
checked[R]
If the HTML field (form parameter) is a radio button, checkbox or select field, this flag determines if the field should be checked (selected).
dynamic[R]
Is the HTML field (form parameter) dynamically generated? If so, the login page is requested and the value of the field is extracted from the response.
name[R]
The name of the HTML field (form parameter).
type[R]
The type of the HTML field (form parameter).
value[R]
The value of the HTML field (form parameter).
Public Class Methods
new(name, value, type, dynamic, checked)
click to toggle source
# File lib/nexpose/web_credentials.rb, line 116 def initialize(name, value, type, dynamic, checked) @name = name @value = value @type = type @dynamic = dynamic @checked = checked end
Public Instance Methods
to_h()
click to toggle source
# File lib/nexpose/web_credentials.rb, line 128 def to_h { value: value, type: type, name: name, dynamic: dynamic, checked: checked } end
to_json()
click to toggle source
# File lib/nexpose/web_credentials.rb, line 124 def to_json JSON.generate(to_h) end