Module: KlaviyoAPI
- Defined in:
- lib/klaviyo_api.rb,
lib/klaviyo_api/session.rb,
lib/klaviyo_api/version.rb,
lib/klaviyo_api/connection.rb,
lib/klaviyo_api/exceptions.rb,
lib/klaviyo_api/configuration.rb,
lib/klaviyo_api/json_formatter.rb,
lib/klaviyo_api/resources/base.rb,
lib/klaviyo_api/resources/list.rb,
lib/klaviyo_api/resources/event.rb,
lib/klaviyo_api/resources/metric.rb,
lib/klaviyo_api/resources/profile.rb,
lib/klaviyo_api/resources/list_member.rb,
lib/klaviyo_api/resources/list_exclusion.rb,
lib/klaviyo_api/resources/profile_exclusion.rb
Defined Under Namespace
Modules: Collections, Support
Classes: Base, Configuration, Connection, Event, InvalidOperation, JsonFormatter, List, ListExclusion, ListMember, Metric, MissingParameter, Profile, ProfileExclusion, Session
Constant Summary
collapse
- VERSION =
'1.7.0'
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
22
23
24
|
# File 'lib/klaviyo_api/configuration.rb', line 22
def configuration
@configuration ||= Configuration.new
end
|
14
15
16
17
18
19
20
|
# File 'lib/klaviyo_api/configuration.rb', line 14
def configure
yield configuration
KlaviyoAPI::Base.site = configuration.url
configuration
end
|