Class: Nem::Model::NodeEndpoint

Inherits:
Object
  • Object
show all
Includes:
Nem::Mixin::Assignable
Defined in:
lib/nem/model/node.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



27
28
29
# File 'lib/nem/model/node.rb', line 27

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



27
28
29
# File 'lib/nem/model/node.rb', line 27

def port
  @port
end

#protocolObject (readonly)

Returns the value of attribute protocol.



27
28
29
# File 'lib/nem/model/node.rb', line 27

def protocol
  @protocol
end

Class Method Details

.new_from_endpoint(hash) ⇒ Object



29
30
31
# File 'lib/nem/model/node.rb', line 29

def self.new_from_endpoint(hash)
  new(hash)
end