Module: MaimaiNet::Model

Defined in:
lib/maimai_net/model.rb,
lib/maimai_net/model-typing.rb

Overview

data model used for parsed data from MaimaiNet::Page

Defined Under Namespace

Modules: Chart, FinaleArchive, Optional, PlayerCommon, PlayerData, Record, Result, Variant Classes: Either, Generic, WebID

Constant Summary collapse

SongCount =
Base::Struct.new(achieved: Integer, total: Integer) do
  def to_s
    "#{achieved}/#{total}"
  end
  alias inspect to_s
end
Boolean =
SongEntry =
Base::Struct.new(
  web_id: WebID,
  title: String,
  genre: String,
)
SongFavoriteInfo =
Base::Struct.new(
  song: SongEntry,
  flag: Boolean,
)
PhotoUpload =
Base::Struct.new(
  info: Chart::InfoLite,
  url: URI::Generic,
  location: String,
  time: Time,
)