struct Athena::Mercure::Spec::MockHub

Included Modules

Defined in:

spec.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, &publisher : AMC::Update -> String) #

[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]