Class: SmashRuby::Pool

Inherits:
Object
  • Object
show all
Defined in:
lib/smash_ruby/pool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_advancingObject (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

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/smash_ruby/pool.rb', line 3

def id
  @id
end

#identifierObject (readonly)

Returns the value of attribute identifier.



3
4
5
# File 'lib/smash_ruby/pool.rb', line 3

def identifier
  @identifier
end

#phase_idObject (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