Module: Anilibria::Api::Types

Defined in:
lib/anilibria/api/types/t.rb,
lib/anilibria/api/types/base.rb,
lib/anilibria/api/types/feed.rb,
lib/anilibria/api/types/team.rb,
lib/anilibria/api/types/title.rb,
lib/anilibria/api/types/youtube.rb,
lib/anilibria/api/types/schedule.rb,
lib/anilibria/api/types/dry_types.rb,
lib/anilibria/api/types/seed_stats.rb

Defined Under Namespace

Modules: DryTypes, T Classes: Base, Schedule, SeedStats, Team, Title, YouTube

Constant Summary collapse

Feed =
DryTypes::Array.of(
  DryTypes.Constructor(Types::Base) do |i|
    case i.keys.first
    when :title then Types::Title.new(i[:title])
    when :youtube then Types::YouTube.new(i[:youtube])
    end
  end
)