Sha256: ab16f332c32a5e9551e9bda2ba6cd5f86209ee0ca028f1c5e79053df7c7a9006

Contents?: true

Size: 804 Bytes

Versions: 7

Compression:

Stored size: 804 Bytes

Contents

module Balanced

  # An Event is a snapshot of another resource at a point in time when
  # something significant occurred. Events are created when resources are
  # created, updated, deleted or otherwise change state such as a Credit being
  # marked as failed.
  #
  class Event
    include Balanced::Resource
    include Balanced::HypermediaRegistry

    define_hypermedia_types [:events]
  end

  # Represents a single event being sent to a callback.
  #
  class EventCallback
    include Balanced::Resource
    include Balanced::HypermediaRegistry

    define_hypermedia_types [:event_callbacks]
  end

  # Represents a single log of an event sent to a callback.
  #
  class Log
    include Balanced::Resource
    include Balanced::HypermediaRegistry

    define_hypermedia_types [:logs]
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
balanced-1.2.1 lib/balanced/resources/event.rb
balanced-1.1.1 lib/balanced/resources/event.rb
balanced-1.1.0 lib/balanced/resources/event.rb
balanced-1.0.2 lib/balanced/resources/event.rb
balanced-1.0.1 lib/balanced/resources/event.rb
balanced-1.0 lib/balanced/resources/event.rb
balanced-1.0.beta1 lib/balanced/resources/event.rb