module Cha
Constants
- BadRequest
Raised when Tumblr returns the HTTP status code 400
- ClientError
Raised when Tumblr returns the HTTP status code 4xx
- Error
Custom error class for rescuing from all ChatWork errors
- Forbidden
Raised when Tumblr returns the HTTP status code 403
- InternalServerError
Raised when Tumblr returns the HTTP status code 500
- NotAuthorized
Raised when Tumblr returns the HTTP status code 401
- NotFound
Raised when Tumblr returns the HTTP status code 404
- NotImplemented
Raised when Tumblr returns the HTTP status code 501
- ServerError
Raised when Tumblr returns the HTTP status code 5xx
Raised when Tumblr returns the HTTP status code 503
- VERSION
Public Class Methods
method_missing(method_name, *args, &block)
click to toggle source
Delegate to {Cha::Client}
Calls superclass method
# File lib/cha.rb, line 17 def self.method_missing(method_name, *args, &block) return super unless new.respond_to?(method_name) new.send(method_name, *args, &block) end
new(options = {})
click to toggle source
Alias for Cha::Client.new
@return [Cha::Client]
# File lib/cha.rb, line 12 def self.new(options = {}) Client.new(options) end
respond_to?(method_name, include_private = false)
click to toggle source
Delegate to {Cha::Client}
Calls superclass method
# File lib/cha.rb, line 23 def self.respond_to?(method_name, include_private = false) new.respond_to?(method_name, include_private) || super end