Module: Graphcommons

Defined in:
lib/graphcommons.rb

Overview

Ruby wrapper for Graphcommons REST API that is used to programmatically make network maps (graphs) and integrate graphs into your applications.

To get started, sign up to Graph Commons and get your developer key, which will be used for authentication in your API calls.

More info at: graphcommons.github.io/api-v1/

Defined Under Namespace

Classes: API, APIError, Endpoint, Search, Signal

Constant Summary collapse

@@verbose =
false

Class Method Summary collapse

Class Method Details

.quiet!Object

Switch off verbose output.



30
31
32
33
# File 'lib/graphcommons.rb', line 30

def self.quiet!
  @@verbose = false
  true
end

.verboseObject

Check verbose output. Default is false.



20
21
22
# File 'lib/graphcommons.rb', line 20

def self.verbose
  @@verbose
end

.verbose!Object

Switch on verbose output.



25
26
27
# File 'lib/graphcommons.rb', line 25

def self.verbose!
  @@verbose = true
end