Class: PFM::Storage::BattleBox

Inherits:
Object
  • Object
show all
Defined in:
docs/4_Systems_200_Storage.rb

Overview

Class Responsive of holding a team that can be used for battles

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, content_overload = nil) ⇒ BattleBox

Create a new battle box

Parameters:

  • name (String)

    name of the box

  • content_overload (Array) (defaults to: nil)

    content to force in this object



190
191
# File 'docs/4_Systems_200_Storage.rb', line 190

def initialize(name, content_overload = nil)
end

Instance Attribute Details

#contentArray<PFM::Pokemon> (readonly)

Content of the storage

Returns:



186
187
188
# File 'docs/4_Systems_200_Storage.rb', line 186

def content
  @content
end

#nameString

Name of the storage

Returns:



183
184
185
# File 'docs/4_Systems_200_Storage.rb', line 183

def name
  @name
end