muse-dl/src/article.cr

20 lines
402 B
Crystal
Raw Permalink Normal View History

2020-04-07 20:18:48 +00:00
require "./infoparser.cr"
require "./issue.cr"
module Muse::Dl
class Article
2020-06-30 11:20:49 +00:00
getter id : String, :start_page, :end_page, :title
setter title : String | Nil, start_page : Int32 | Nil, end_page : Int32 | Nil
def initialize(id : String)
@id = id
@url = "https://muse.jhu.edu/article/#{id}"
end
2020-06-30 12:29:56 +00:00
# TODO: Fix this
def open_access
return false
end
2020-04-07 20:18:48 +00:00
end
end