Fix Downloaders namespace
Our namespace was singular Downloader, now it is plural Downloaders to match the folder name
This commit is contained in:
parent
78563142a9
commit
3c8b4fdcce
5 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Granblue
|
module Granblue
|
||||||
module Downloader
|
module Downloaders
|
||||||
class BaseDownloader
|
class BaseDownloader
|
||||||
SIZES = %w[main grid square].freeze
|
SIZES = %w[main grid square].freeze
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Granblue
|
module Granblue
|
||||||
module Downloader
|
module Downloaders
|
||||||
class CharacterDownloader < BaseDownloader
|
class CharacterDownloader < BaseDownloader
|
||||||
def download
|
def download
|
||||||
character = Character.find_by(granblue_id: @id)
|
character = Character.find_by(granblue_id: @id)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
require_relative 'weapon_downloader'
|
require_relative 'weapon_downloader'
|
||||||
|
|
||||||
module Granblue
|
module Granblue
|
||||||
module Downloader
|
module Downloaders
|
||||||
class ElementalWeaponDownloader < WeaponDownloader
|
class ElementalWeaponDownloader < WeaponDownloader
|
||||||
SUFFIXES = [2, 3, 4, 1, 6, 5].freeze
|
SUFFIXES = [2, 3, 4, 1, 6, 5].freeze
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Granblue
|
module Granblue
|
||||||
module Downloader
|
module Downloaders
|
||||||
class SummonDownloader < BaseDownloader
|
class SummonDownloader < BaseDownloader
|
||||||
def download
|
def download
|
||||||
summon = Summon.find_by(granblue_id: @id)
|
summon = Summon.find_by(granblue_id: @id)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Granblue
|
module Granblue
|
||||||
module Downloader
|
module Downloaders
|
||||||
class WeaponDownloader < BaseDownloader
|
class WeaponDownloader < BaseDownloader
|
||||||
def download
|
def download
|
||||||
weapon = Weapon.find_by(granblue_id: @id)
|
weapon = Weapon.find_by(granblue_id: @id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue