Class: Skyfall::Jetstream::IdentityMessage

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

Instance Attribute Summary

Attributes inherited from Message

#did, #json, #time_us, #type

Instance Method Summary collapse

Methods inherited from Message

new, #operations, #time

Constructor Details

#initialize(json) ⇒ IdentityMessage

Returns a new instance of IdentityMessage.

Raises:



6
7
8
9
# File 'lib/skyfall/jetstream/identity_message.rb', line 6

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

Instance Method Details

#handleObject



11
12
13
# File 'lib/skyfall/jetstream/identity_message.rb', line 11

def handle
  @json['identity']['handle']
end