Sha256: 89c1bc67e569fb1d69f81eed8c25c37536a4a00edd32f2d4f395b3125ce1dc37

Contents?: true

Size: 308 Bytes

Versions: 11

Compression:

Stored size: 308 Bytes

Contents

class Pubnub
  def initialize(hash)
    @publish_key   = hash[:publish_key]
    @subscribe_key = hash[:subscribe_key]
    @secret_key    = hash[:secret_key]
    @ssl           = true
  end

  def publish(message)
    return {
      channel: message[:channel],
      message: message[:message]
    }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreign_office-0.17.6 test/support/pubnub.rb
foreign_office-0.17.5 test/support/pubnub.rb
foreign_office-0.17.4 test/support/pubnub.rb
foreign_office-0.17.3 test/support/pubnub.rb
foreign_office-0.17.2 test/support/pubnub.rb
foreign_office-0.17.1 test/support/pubnub.rb
foreign_office-0.17.0 test/support/pubnub.rb
foreign_office-0.16.6 test/support/pubnub.rb
foreign_office-0.16.5 test/support/pubnub.rb
foreign_office-0.16.4 test/support/pubnub.rb
foreign_office-0.16.3 test/support/pubnub.rb