Class: Coach4rb::Resource::Sport
- Defined in:
- lib/coach4rb/resource/sport.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Entity
Class Method Summary collapse
Methods inherited from Entity
Methods included from Mixin::AsHash
Methods included from Mixin::Iterable
Methods included from Mixin::AutoConstructor
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/coach4rb/resource/sport.rb', line 7 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/coach4rb/resource/sport.rb', line 7 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/coach4rb/resource/sport.rb', line 7 def name @name end |
Class Method Details
.from_coach(a_hash) ⇒ Object
10 11 12 13 |
# File 'lib/coach4rb/resource/sport.rb', line 10 def self.from_coach(a_hash) new_hash = a_hash.dup self.new(new_hash) end |