class Nem::Node

Public Class Methods

new(options = {}) click to toggle source

@param [hash] options HTTP Client connection information @option options [String] :url URL @option options [String] :scheme default http @option options [Symbol] :host default 127.0.0.1 @option options [Integer] :port default 7890 @option options [Integer] :timeout default 5

# File lib/nem/node.rb, line 13
def initialize(options = {})
  @client = Nem::Client.new(options)
end

Public Instance Methods

heartbeat() click to toggle source
# File lib/nem/node.rb, line 17
def heartbeat
  Nem::Model::Heartbeat.new request!(:get, '/heartbeat')
end
shutdown() click to toggle source
# File lib/nem/node.rb, line 25
def shutdown
  request!(:get, '/shutdown')
end
status() click to toggle source
# File lib/nem/node.rb, line 21
def status
  Nem::Model::Status.new request!(:get, '/status')
end