class Ribbon::Intercom::Client::SDK::Adapters::HttpAdapter
Attributes
connection[R]
Public Instance Methods
connect(*args)
click to toggle source
# File lib/ribbon/intercom/client/sdk/adapters/http_adapter.rb, line 8 def connect(*args) @_connection_args = args.dup end
connected?()
click to toggle source
# File lib/ribbon/intercom/client/sdk/adapters/http_adapter.rb, line 12 def connected? !!connection end
send_packet!(encoded_packet)
click to toggle source
Send the encoded packet up to the service via an HTTP PUT.
# File lib/ribbon/intercom/client/sdk/adapters/http_adapter.rb, line 22 def send_packet!(encoded_packet) response = connection.put( headers: headers, body: encoded_packet ) Adapter::Response.new(response.body, response.code.to_i, response) end