module Ponto
Constants
- VERSION
Public Class Methods
api_schema()
click to toggle source
# File lib/ponto.rb, line 48 def api_schema @api_schema ||= client.get(uri: client.base_uri)["links"] end
client()
click to toggle source
# File lib/ponto.rb, line 24 def client options = configuration.to_h.delete_if { |_, v| v.nil? } @client ||= Ponto::Client.new(options) end
configuration()
click to toggle source
# File lib/ponto.rb, line 36 def configuration @configuration ||= Struct.new( :client_id, :client_secret, :token, :api_scheme, :api_host, :api_port, :ssl_ca_file ).new end
configure() { |configuration| ... }
click to toggle source
# File lib/ponto.rb, line 29 def configure @client = nil @api_schema = nil @configuration = nil yield configuration end
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/ponto.rb, line 56 def method_missing(method_name, *args, &block) if client.respond_to?(method_name) client.__send__(method_name, *args, &block) else super end end
respond_to_missing?(method_name, include_private = false)
click to toggle source
# File lib/ponto.rb, line 52 def respond_to_missing?(method_name, include_private = false) client.respond_to?(method_name, include_private) end