class Logux::Client
Attributes
logux_host[R]
Public Class Methods
new(logux_host: Logux.configuration.logux_host)
click to toggle source
# File lib/logux/client.rb, line 7 def initialize(logux_host: Logux.configuration.logux_host) @logux_host = logux_host end
Public Instance Methods
client()
click to toggle source
# File lib/logux/client.rb, line 17 def client @client ||= RestClient::Resource.new(logux_host, verify_ssl: false) end
post(params)
click to toggle source
# File lib/logux/client.rb, line 11 def post(params) client.post(params.to_json, content_type: :json, accept: :json) end