Module: Nem::Client::Local

Defined in:
lib/nem/client.rb

Instance Method Summary collapse

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


162
163
164
# File 'lib/nem/client.rb', line 162

def local?
  host == '127.0.0.1' || host == 'localhost'
end

#remote?Boolean

Returns:

  • (Boolean)


166
167
168
# File 'lib/nem/client.rb', line 166

def remote?
  !local?
end