class Scalingo::Logs
Attributes
app[R]
Public Class Methods
new(app)
click to toggle source
Calls superclass method
Scalingo::Api::new
# File lib/scalingo/logs.rb, line 7 def initialize(app) @app = app super() end
Public Instance Methods
dump(lines = 10)
click to toggle source
# File lib/scalingo/logs.rb, line 12 def dump(lines = 10) get('', n: lines) end
realtime()
click to toggle source
# File lib/scalingo/logs.rb, line 16 def realtime Scalingo::Realtime::Logs.new(app) end
Protected Instance Methods
request(method, path, options)
click to toggle source
Calls superclass method
Scalingo::Request#request
# File lib/scalingo/logs.rb, line 22 def request(method, path, options) endpoint, query = app.logs_url.split('?') log_token = query.split('=').last options.merge!(token: log_token, endpoint: endpoint) super(method, path, options) end