class Bilibili::FavMediaInfo

fav media info

Attributes

bv_id[RW]
id[RW]
intro[RW]
page[RW]
title[RW]
type[RW]

Public Class Methods

new(json) click to toggle source
# File lib/bilibili_console/fav.rb, line 109
def initialize(json)
  return if json.nil?

  @id = json[:id]
  @type = json[:type]
  @title = json[:title]
  @intro = json[:intro]
  @page = json[:page]
  @bv_id = json[:bv_id]
end

Public Instance Methods

to_json(*opt) click to toggle source
# File lib/bilibili_console/fav.rb, line 120
def to_json(*opt)
  {
    id: @id,
    type: @type,
    title: @title,
    intro: @intro,
    page: @page,
    bv_id: @bv_id
  }.to_json(*opt)
end