Class: Nem::Model::NodeEndpoint
- Inherits:
-
Object
- Object
- Nem::Model::NodeEndpoint
- Includes:
- Nem::Mixin::Assignable
- Defined in:
- lib/nem/model/node.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Class Method Summary collapse
Methods included from Nem::Mixin::Assignable
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
27 28 29 |
# File 'lib/nem/model/node.rb', line 27 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
27 28 29 |
# File 'lib/nem/model/node.rb', line 27 def port @port end |
#protocol ⇒ Object (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 |