class Chef::Knife::WsmanEndpoint

Attributes

error_message[RW]
host[RW]
product_vendor[RW]
product_version[RW]
protocol_version[RW]
response_status_code[RW]
wsman_port[RW]
wsman_url[RW]

Public Class Methods

new(name, port, url) click to toggle source
# File lib/chef/knife/helpers/wsman_endpoint.rb, line 31
def initialize(name, port, url)
  @host = name
  @wsman_port = port
  @wsman_url = url
end

Public Instance Methods

to_hash() click to toggle source
# File lib/chef/knife/helpers/wsman_endpoint.rb, line 37
def to_hash
  hash = {}
  instance_variables.each { |var| hash[var.to_s.delete("@")] = instance_variable_get(var) }
  hash
end