struct

Swm::Node

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(hostname : String, ip : String, role : String, user : String)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(hostname _hostname = @hostname, ip _ip = @ip, role _role = @role, user _user = @user)
Source
hostname
ip
role
ssh_host
Source
to_h
Source
to_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.

Source
user