module Iterable
Iterable
module for API interactions
Constants
- DATE_FORMAT
Public Instance Methods
config()
click to toggle source
@return [Iterable::Config] The default config for API endpoints
# File lib/iterable.rb, line 65 def config @config ||= Config.new end
configure() { |conf| ... }
click to toggle source
Configure a default [Iterable::Config] object to be used when interacting with API endpoints
@example Configuring with token
Iterable.configure do |conf| conf.token = 'secret-token' end
# File lib/iterable.rb, line 56 def configure config.tap do |conf| yield conf end end
request(conf, path, params = {})
click to toggle source
@!visibility private
# File lib/iterable.rb, line 70 def request(conf, path, params = {}) Request.new conf, path, params end