Class: Coach4rb::Resource::Sport
- Inherits:
-
Entity
- Object
- Entity
- Coach4rb::Resource::Sport
- Defined in:
- lib/coach4rb/resource/sport.rb
Instance Attribute Summary (collapse)
-
- (Object) description
Returns the value of attribute description.
-
- (Object) id
Returns the value of attribute id.
-
- (Object) name
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
- (Object) description
Returns the value of attribute description
7 8 9 |
# File 'lib/coach4rb/resource/sport.rb', line 7 def description @description end |
- (Object) id
Returns the value of attribute id
7 8 9 |
# File 'lib/coach4rb/resource/sport.rb', line 7 def id @id end |
- (Object) name
Returns the value of attribute name
7 8 9 |
# File 'lib/coach4rb/resource/sport.rb', line 7 def name @name end |
Class Method Details
+ (Object) from_coach(a_hash)
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 |