struct Swm::Node
- Swm::Node
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
docker/node.crConstructors
Instance Method Summary
- #clone
- #copy_with(hostname _hostname = @hostname, ip _ip = @ip, role _role = @role, user _user = @user)
- #hostname : String
- #ip : String
- #role : String
- #ssh_host
- #to_h
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #user : String
Constructor Detail
Instance Method Detail
def copy_with(hostname _hostname = @hostname, ip _ip = @ip, role _role = @role, user _user = @user)
#
def to_s
#
Description copied from class Object
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
.