module SentryApi

Constants

VERSION

Public Class Methods

actions() click to toggle source

Returns an unsorted array of available client methods.

@return [Array<Symbol>]

# File lib/sentry-api.rb, line 40
def self.actions
  hidden = /endpoint|auth_token|default_org_slug|get|post|put|delete|validate|set_request_defaults|httparty/
  (SentryApi::Client.instance_methods - Object.methods).reject { |e| e[hidden] }
end
client(options={}) click to toggle source

Alias for Sentry::Client.new

@return [Sentry::Client]

# File lib/sentry-api.rb, line 17
def self.client(options={})
  SentryApi::Client.new(options)
end
http_proxy(address=nil, port=nil, username=nil, password=nil) click to toggle source

Delegate to HTTParty.http_proxy

# File lib/sentry-api.rb, line 33
def self.http_proxy(address=nil, port=nil, username=nil, password=nil)
  SentryApi::Request.http_proxy(address, port, username, password)
end
method_missing(method, *args, &block) click to toggle source

Delegate to Sentry::Client

Calls superclass method
# File lib/sentry-api.rb, line 22
def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

Public Instance Methods

respond_to_missing?(method_name, include_private = false) click to toggle source

Delegate to Sentry::Client

Calls superclass method
# File lib/sentry-api.rb, line 28
def respond_to_missing?(method_name, include_private = false)
  client.respond_to?(method_name) || super
end