Module: Sonar

Defined in:
lib/sonar.rb,
lib/sonar/user.rb,
lib/sonar/client.rb,
lib/sonar/search.rb,
lib/sonar/cli/cli.rb,
lib/sonar/request.rb,
lib/sonar/version.rb,
lib/sonar/cli/rcfile.rb,
lib/sonar/certificate.rb

Defined Under Namespace

Modules: Certificate, Request, Search, User Classes: CLI, Client, RCFile

Constant Summary collapse

VERSION =
"0.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token



9
10
11
# File 'lib/sonar.rb', line 9

def access_token
  @access_token
end

.api_urlObject

Returns the value of attribute api_url



9
10
11
# File 'lib/sonar.rb', line 9

def api_url
  @api_url
end

.api_versionObject

Returns the value of attribute api_version



9
10
11
# File 'lib/sonar.rb', line 9

def api_version
  @api_version
end

.emailObject

Returns the value of attribute email



9
10
11
# File 'lib/sonar.rb', line 9

def email
  @email
end

Class Method Details

.configure { ... } ⇒ Object

Configure default

Yields:

  • Sonar client object



15
16
17
18
19
# File 'lib/sonar.rb', line 15

def configure
  load_defaults
  yield self
  true
end