Class: Armour

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, rating, type) ⇒ Armour

Returns a new instance of Armour.



4
5
6
7
8
# File 'lib/armour.rb', line 4

def initialize(name, rating, type)
	@name = name
	@rating = rating
	@type = type
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/armour.rb', line 2

def name
  @name
end

#ratingObject

Returns the value of attribute rating.



2
3
4
# File 'lib/armour.rb', line 2

def rating
  @rating
end

#typeObject

Returns the value of attribute type.



2
3
4
# File 'lib/armour.rb', line 2

def type
  @type
end