Class: StudioGame::Swag

Inherits:
Struct
  • Object
show all
Defined in:
lib/studio_game/swagbag.rb

Overview

A Struct is a collection of attributes and saves us from having to write a class

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/studio_game/swagbag.rb', line 4

def name
  @name
end

#pointsObject

Returns the value of attribute points

Returns:

  • (Object)

    the current value of points



4
5
6
# File 'lib/studio_game/swagbag.rb', line 4

def points
  @points
end