Class: Distillery::Release
- Inherits:
-
Object
- Object
- Distillery::Release
- Defined in:
- lib/distillery/game/release.rb
Overview
Information about release
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Release name.
-
#region ⇒ String
readonly
Region of release.
Class Method Summary collapse
-
.regions ⇒ Set<String>
List all assigned region code.
Instance Method Summary collapse
-
#initialize(name, region:) ⇒ Release
constructor
Create a new instance of Release.
Constructor Details
#initialize(name, region:) ⇒ Release
Create a new instance of Release.
24 25 26 27 28 29 |
# File 'lib/distillery/game/release.rb', line 24 def initialize(name, region:) @name = name @region = region @@regions.add(region) end |
Instance Attribute Details
#name ⇒ String (readonly)
Release name
33 34 35 |
# File 'lib/distillery/game/release.rb', line 33 def name @name end |
#region ⇒ String (readonly)
Region of release
37 38 39 |
# File 'lib/distillery/game/release.rb', line 37 def region @region end |
Class Method Details
.regions ⇒ Set<String>
List all assigned region code.
15 16 17 |
# File 'lib/distillery/game/release.rb', line 15 def self.regions @@regions end |