Class: Skyfall::Jetstream::IdentityMessage
- Defined in:
- lib/skyfall/jetstream/identity_message.rb
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
- #handle ⇒ Object
-
#initialize(json) ⇒ IdentityMessage
constructor
A new instance of IdentityMessage.
Methods inherited from Message
Constructor Details
#initialize(json) ⇒ IdentityMessage
Returns a new instance of IdentityMessage.
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
#handle ⇒ Object
11 12 13 |
# File 'lib/skyfall/jetstream/identity_message.rb', line 11 def handle @json['identity']['handle'] end |