Skip to content

struct Athena::Mercure::Spec::MockHub
inherits Struct #

Included modules

Athena::Mercure::Hub::Interface

Constructors#

.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

Methods#

#public_url : String#

View source

#publish(update : AMC::Update) : String#

View source

#token_factory : AMC::TokenFactory::Interface | ::Nil#

View source

#token_provider : AMC::TokenProvider::Interface#

View source

#url : String#

View source