Module: CloudEvents

Defined in:
lib/cloud_events.rb,
lib/cloud_events/event.rb,
lib/cloud_events/errors.rb,
lib/cloud_events/format.rb,
lib/cloud_events/version.rb,
lib/cloud_events/event/v0.rb,
lib/cloud_events/event/v1.rb,
lib/cloud_events/event/utils.rb,
lib/cloud_events/json_format.rb,
lib/cloud_events/text_format.rb,
lib/cloud_events/content_type.rb,
lib/cloud_events/event/opaque.rb,
lib/cloud_events/http_binding.rb,
lib/cloud_events/event/field_interpreter.rb

Overview

CloudEvents implementation.

This is a Ruby implementation of the CloudEvents specification. It supports both CloudEvents 0.3 and CloudEvents 1.0.

Defined Under Namespace

Modules: Event, Format Classes: AttributeError, CloudEventsError, ContentType, FormatSyntaxError, HttpBinding, JsonFormat, NotCloudEventError, SpecVersionError, TextFormat, UnsupportedFormatError

Constant Summary collapse

HttpContentError =
Deprecated.

Will be removed in version 1.0. Use UnsupportedFormatError.

Alias of UnsupportedFormatError, for backward compatibility.

UnsupportedFormatError
VERSION =

Version of the Ruby CloudEvents SDK

Returns:

  • (String)
"0.7.0"

Class Method Summary collapse

Class Method Details

.supported_spec_versionsArray<String>

The spec versions supported by this implementation.

Returns:

  • (Array<String>)


29
30
31
# File 'lib/cloud_events.rb', line 29

def supported_spec_versions
  SUPPORTED_SPEC_VERSIONS
end