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
|
2020-06-30 09:49:12 +00:00
|
|
|
setter title : String | Nil, start_page : Int32 | Nil, end_page : Int32 | Nil
|
2020-06-30 08:48:16 +00:00
|
|
|
|
|
|
|
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
|