class Medup::Tool

Defined in:

medup/tool.cr

Constant Summary

ASSETS_DIR_NAME = "assets"
JSON_FORMAT = "json"
MARKDOWN_FORMAT = "md"
SOURCE_AUTHOR_POSTS = "overview"
SOURCE_RECOMMENDED_POSTS = "has-recommended"

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : Medup::Context = ::Medup::Context.new, format : String | Nil = MARKDOWN_FORMAT, source : String | Nil = SOURCE_AUTHOR_POSTS, user : String | Nil = nil, publication : String | Nil = nil, articles : Array(String) = Array(String).new) #

[View source]

Instance Method Detail

def backup #

[View source]
def close : Nil #

[View source]
def create_directory(path) #

[View source]
def process_post(post_url : String) #

[View source]
def process_posts_async(posts) #

[View source]
def save(post, format = "json") #

[View source]