Class: Amaranth::Team
- Inherits:
-
Struct
- Object
- Struct
- Amaranth::Team
- Defined in:
- lib/amaranth/team.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#slug ⇒ Object
Returns the value of attribute slug.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Team
constructor
A new instance of Team.
- #projects ⇒ Object
- #videos ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Team
Returns a new instance of Team.
11 12 13 14 15 |
# File 'lib/amaranth/team.rb', line 11 def initialize attributes={} attributes.each do |key, value| self[key] = value end end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/amaranth/team.rb', line 4 def name @name end |
#slug ⇒ Object
Returns the value of attribute slug
4 5 6 |
# File 'lib/amaranth/team.rb', line 4 def slug @slug end |