Module: VoiceNotes

Defined in:
lib/voice_notes.rb,
lib/voice_notes/error.rb,
lib/voice_notes/client.rb,
lib/voice_notes/version.rb,
lib/voice_notes/configuration.rb,
lib/voice_notes/resources/auth.rb,
lib/voice_notes/resources/base.rb,
lib/voice_notes/resources/notes.rb

Defined Under Namespace

Modules: Resources Classes: AuthenticationError, AuthorizationError, Client, Configuration, Error, NotFoundError, RateLimitError, ServerError, ValidationError

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



13
14
15
# File 'lib/voice_notes.rb', line 13

def configuration
  @configuration
end

Class Method Details

.clientObject



21
22
23
# File 'lib/voice_notes.rb', line 21

def self.client
  @client ||= Client.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



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

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.reset!Object



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

def self.reset!
  @client = nil
  @configuration = nil
end