Module: Instamsg

Extended by:
Forwardable
Defined in:
lib/instamsg.rb,
lib/instamsg/client.rb,
lib/instamsg/request.rb,
lib/instamsg/version.rb,
lib/instamsg/resource.rb

Overview

Used for configuring API credentials and creating client objects

Defined Under Namespace

Classes: AuthenticationError, Client, ConfigurationError, Error, HTTPError, Request, Resource

Constant Summary collapse

VERSION =
"0.0.121"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject



24
25
26
27
28
29
30
# File 'lib/instamsg.rb', line 24

def logger
@logger ||= begin
log = Logger.new($stdout)
log.level = Logger::INFO
log
end
end

Class Method Details

.default_clientObject



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

def default_client
@default_client ||= Instamsg::Client.new
end