class TelegraphApi::Client

Constants

API_URL
REQUEST_RESPONSE

Public Class Methods

method_missing(method, *args, &block) click to toggle source
# File lib/telegraph_api_ruby/client.rb, line 21
def self.method_missing(method, *args, &block)
  path = ActiveSupport::Inflector.camelize(method.to_s, false)
  Request.call(path, *args, REQUEST_RESPONSE[method.to_sym])
end
respond_to_missing?(method, include_all = false) click to toggle source
Calls superclass method
# File lib/telegraph_api_ruby/client.rb, line 26
def self.respond_to_missing?(method, include_all = false)
  REQUEST_RESPONSE[method.to_sym] || super
end