Swm::Node
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(hostname : String, ip : String, role : String, user : String)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
clone
Sourcecopy_with(hostname _hostname = @hostname, ip _ip = @ip, role _role = @role, user _user = @user)
Sourcehostname
ip
role
ssh_host
Sourceto_h
Sourceto_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
user