Module: Fopost
- Defined in:
- lib/fopost/rails.rb,
lib/fopost/rails/engine.rb,
lib/fopost/rails/railtie.rb,
lib/fopost/rails/version.rb,
lib/fopost/rails/publish_job.rb,
lib/fopost/rails/configuration.rb,
lib/fopost/rails/application_job.rb,
lib/fopost/rails/create_post_job.rb,
lib/fopost/rails/webhook_signature.rb,
lib/generators/fopost/install/install_generator.rb,
app/controllers/fopost/rails/webhooks_controller.rb
Overview
Official Rails integration for the FoPost API.
This gem is a thin wrapper: every request, retry, model, and error class
lives in the fopost gem. What is added here is Rails wiring — configuration
and credentials, a memoized client, an install generator, ActiveJob jobs, and
a mountable endpoint for receiving webhooks.
Fopost::Rails.client.posts.list(status: 'scheduled')
Fopost::Rails::PublishJob.perform_later(post.id)
Defined Under Namespace
Modules: Generators, Rails