Module: Bremen::Track
- Included in:
- Base
- Defined in:
- lib/bremen/track.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#length ⇒ Object
Returns the value of attribute length.
-
#thumbnail_url ⇒ Object
Returns the value of attribute thumbnail_url.
-
#title ⇒ Object
Returns the value of attribute title.
-
#uid ⇒ Object
Returns the value of attribute uid.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
5 6 7 |
# File 'lib/bremen/track.rb', line 5 def @author end |
#created_at ⇒ Object
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/bremen/track.rb', line 5 def created_at @created_at end |
#length ⇒ Object
Returns the value of attribute length.
5 6 7 |
# File 'lib/bremen/track.rb', line 5 def length @length end |
#thumbnail_url ⇒ Object
Returns the value of attribute thumbnail_url.
5 6 7 |
# File 'lib/bremen/track.rb', line 5 def thumbnail_url @thumbnail_url end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/bremen/track.rb', line 5 def title @title end |
#uid ⇒ Object
Returns the value of attribute uid.
5 6 7 |
# File 'lib/bremen/track.rb', line 5 def uid @uid end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
5 6 7 |
# File 'lib/bremen/track.rb', line 5 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/bremen/track.rb', line 5 def url @url end |
Instance Method Details
#initialize(attrs = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/bremen/track.rb', line 7 def initialize attrs = {} attrs.each do |key, value| send("#{key}=", value) if respond_to?(key) end end |