Class: SmashRuby::Pool
- Inherits:
-
Object
- Object
- SmashRuby::Pool
- Defined in:
- lib/smash_ruby/pool.rb
Instance Attribute Summary collapse
-
#entrants_advancing ⇒ Object
readonly
Returns the value of attribute entrants_advancing.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#phase_id ⇒ Object
readonly
Returns the value of attribute phase_id.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Pool
constructor
A new instance of Pool.
Constructor Details
#initialize(attributes) ⇒ Pool
5 6 7 8 9 10 |
# File 'lib/smash_ruby/pool.rb', line 5 def initialize(attributes) @id = attributes.dig('id') @phase_id = attributes.dig('phaseId') @identifier = attributes.dig('displayIdentifier') @entrants_advancing = attributes.dig('numProgressing') end |
Instance Attribute Details
#entrants_advancing ⇒ Object (readonly)
Returns the value of attribute entrants_advancing.
3 4 5 |
# File 'lib/smash_ruby/pool.rb', line 3 def entrants_advancing @entrants_advancing end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/smash_ruby/pool.rb', line 3 def id @id end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
3 4 5 |
# File 'lib/smash_ruby/pool.rb', line 3 def identifier @identifier end |
#phase_id ⇒ Object (readonly)
Returns the value of attribute phase_id.
3 4 5 |
# File 'lib/smash_ruby/pool.rb', line 3 def phase_id @phase_id end |