Module: Dimelo::CCP::API

Defined in:
lib/dimelo/ccp/api.rb,
lib/dimelo/ccp/api/error.rb,
lib/dimelo/ccp/api/model.rb,
lib/dimelo/ccp/api/client.rb,
lib/dimelo/ccp/api/version.rb,
lib/dimelo/ccp/api/connection.rb,
lib/dimelo/ccp/api/basic_object.rb,
lib/dimelo/ccp/api/common/openable.rb,
lib/dimelo/ccp/api/common/starrable.rb,
lib/dimelo/ccp/api/lazzy_collection.rb,
lib/dimelo/ccp/api/common/publishable.rb

Defined Under Namespace

Modules: Common Classes: BaseError, BasicObject, Client, Connection, DefinedError, DomainNotFoundError, Error, InvalidAccessTokenError, InvalidUserTypeError, LazzyCollection, Model, NotEnabledError, NotFoundError, SslError

Constant Summary collapse

VERSION =
File.read(File.join(File.dirname(__FILE__),'..', '..', '..', '..','VERSION') ).strip

Class Method Summary collapse

Class Method Details

.decode_json(document) ⇒ Object



43
44
45
# File 'lib/dimelo/ccp/api.rb', line 43

def decode_json(document)
  ActiveSupport::JSON.decode(document)
end

.encode_json(object) ⇒ Object



47
48
49
# File 'lib/dimelo/ccp/api.rb', line 47

def encode_json(object)
  ActiveSupport::JSON.encode(object)
end