Class: Skyfall::Jetstream::CommitMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/skyfall/jetstream/commit_message.rb

Instance Attribute Summary

Attributes inherited from Message

#did, #json, #time_us, #type

Instance Method Summary collapse

Methods inherited from Message

new, #time

Constructor Details

#initialize(json) ⇒ CommitMessage

Returns a new instance of CommitMessage.

Raises:



7
8
9
10
# File 'lib/skyfall/jetstream/commit_message.rb', line 7

def initialize(json)
  raise DecodeError.new("Missing event details") if json['commit'].nil?
  super
end

Instance Method Details

#operationsObject



12
13
14
# File 'lib/skyfall/jetstream/commit_message.rb', line 12

def operations
  @operations ||= [Jetstream::Operation.new(self, json['commit'])]
end