Module: HeedKit
- Defined in:
- lib/heedkit.rb,
lib/heedkit/client.rb,
lib/heedkit/railtie.rb,
lib/heedkit/roadmap.rb,
lib/heedkit/version.rb,
lib/heedkit/changelog.rb
Overview
Ruby / Rails SDK for HeedKit — fetch a project's public roadmap and drive the
end-user feedback API (identify / list / submit / vote / comment) from your server.
HeedKit.configure do |c|
c.project_key = "fk_..."
c.endpoint = "https://acme.heedkit.com" end
HeedKit.roadmap HeedKit.client.identify(external_id: "u-1")
Defined Under Namespace
Modules: Helper
Classes: Changelog, ChangelogEntry, Client, Configuration, Error, Railtie, Roadmap, RoadmapItem
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.changelog ⇒ Object
48
49
50
|
# File 'lib/heedkit.rb', line 48
def changelog
client.changelog
end
|
.client ⇒ Object
A client built from the global configuration.
40
41
42
|
# File 'lib/heedkit.rb', line 40
def client
Client.new(project_key: configuration.project_key, endpoint: configuration.endpoint, timeout: configuration.timeout)
end
|
.configuration ⇒ Object
31
32
33
|
# File 'lib/heedkit.rb', line 31
def configuration
@configuration ||= Configuration.new
end
|
35
36
37
|
# File 'lib/heedkit.rb', line 35
def configure
yield configuration
end
|
.roadmap ⇒ Object
44
45
46
|
# File 'lib/heedkit.rb', line 44
def roadmap
client.roadmap
end
|