Consumer

A runnable Geblang example.

Path
gebweb/examples/services_yaml/src/consumer.gb
Category
Services Yaml

Source

module consumer;

import feed;

export class FeedConsumer {
    feed.FeedClient feed;
    func FeedConsumer(feed.FeedClient feed) {
        this.feed = feed;
    }
    func headlines(): list<string> {
        return this.feed.fetch();
    }
}