Class: MLB::Player

Inherits:
Object
  • Object
show all
Defined in:
lib/mlb/player.rb

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/mlb/player.rb', line 4

def name
  @name
end

#numberObject (readonly)

Returns the value of attribute number.



4
5
6
# File 'lib/mlb/player.rb', line 4

def number
  @number
end

#positionObject (readonly)

Returns the value of attribute position.



4
5
6
# File 'lib/mlb/player.rb', line 4

def position
  @position
end