Class: PFM::Storage::Box

Inherits:
Object show all
Defined in:
docs/01450_Systems_00200_Storage.rb

Overview

Class responsive of storing various thing and holding some information about the storage

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(box_size, name, theme, content_overload = nil) ⇒ Box

Create a new box

Parameters:

  • box_size (Integer)

    size of the box

  • name (String)

    name of the box

  • theme (Integer)

    theme of the box

  • content_overload (Array) (defaults to: nil)

    content to force in this object



175
176
# File 'docs/01450_Systems_00200_Storage.rb', line 175

def initialize(box_size, name, theme, content_overload = nil)
end

Instance Attribute Details

#contentArray<PFM::Pokemon> (readonly)

Content of the storage

Returns:



169
170
171
# File 'docs/01450_Systems_00200_Storage.rb', line 169

def content
  @content
end

#nameString

Name of the storage

Returns:



163
164
165
# File 'docs/01450_Systems_00200_Storage.rb', line 163

def name
  @name
end

#themeInteger

Theme of the storage

Returns:

  • (Integer)


166
167
168
# File 'docs/01450_Systems_00200_Storage.rb', line 166

def theme
  @theme
end