mirror of https://github.com/captn3m0/muse-dl
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
402 B
Crystal
20 lines
402 B
Crystal
require "./infoparser.cr"
|
|
require "./issue.cr"
|
|
|
|
module Muse::Dl
|
|
class Article
|
|
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
|
|
|
|
# TODO: Fix this
|
|
def open_access
|
|
return false
|
|
end
|
|
end
|
|
end
|