Class: Treasure

Inherits:
Struct
  • Object
show all
Defined in:
lib/dry_game/treasure_trove.rb

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/dry_game/treasure_trove.rb', line 3

def name
  @name
end

#pointsObject

Returns the value of attribute points

Returns:

  • (Object)

    the current value of points



3
4
5
# File 'lib/dry_game/treasure_trove.rb', line 3

def points
  @points
end