class Athena::Mercure::Hub

Included Modules

Defined in:

hub/hub.cr
hub/interface.cr

Constructors

Instance Method Summary

Instance methods inherited from module Athena::Mercure::Hub::Interface

public_url : String public_url, publish(update : AMC::Update) : String publish, token_factory : AMC::TokenFactory::Interface | Nil token_factory, token_provider : AMC::TokenProvider::Interface token_provider, url : String url

Constructor Detail

def self.new(url : String, token_provider : AMC::TokenProvider::Interface, public_url : String | Nil = nil, token_factory : AMC::TokenFactory::Interface | Nil = nil, http_client : HTTP::Client | Nil = nil) #

[View source]

Instance Method Detail

def public_url : String #

[View source]
def publish(update : AMC::Update) : String #

[View source]
def token_factory : AMC::TokenFactory::Interface | Nil #

[View source]
def token_provider : AMC::TokenProvider::Interface #

[View source]
def url : String #

[View source]