Class: Coyodlee::JsonMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/coyodlee/messages.rb

Direct Known Subclasses

CobrandLoginMessage, UserLoginMessage

Instance Method Summary collapse

Constructor Details

#initialize(message = '{}') ⇒ JsonMessage

Returns a new instance of JsonMessage.


5
6
7
# File 'lib/coyodlee/messages.rb', line 5

def initialize(message = '{}')
  @json = JSON.parse(message)
end