Class: NoyoApi::Api

Inherits:
Object
  • Object
show all
Defined in:
lib/noyo_api/api.rb

Class Method Summary collapse

Class Method Details

.configObject



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

def self.config
  @@config ||= Configuration.new
end

.configure {|@@config| ... } ⇒ Object

Yields:



3
4
5
6
7
# File 'lib/noyo_api/api.rb', line 3

def self.configure
  @@config ||= Configuration.new
  yield(@@config) if block_given?
  @@config
end