Class: Coach4rb::Resource::Sport

Inherits:
Entity
  • Object
show all
Defined in:
lib/coach4rb/resource/sport.rb

Instance Attribute Summary (collapse)

Attributes inherited from Entity

#links, #uri

Class Method Summary (collapse)

Methods inherited from Entity

#[], #each, #entity_path

Methods included from Mixin::AsHash

included

Methods included from Mixin::Iterable

included

Methods included from Mixin::AutoConstructor

included

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