Module: Bremen::Track

Included in:
Base
Defined in:
lib/bremen/track.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorObject

Returns the value of attribute author.



5
6
7
# File 'lib/bremen/track.rb', line 5

def author
  @author
end

#created_atObject

Returns the value of attribute created_at.



5
6
7
# File 'lib/bremen/track.rb', line 5

def created_at
  @created_at
end

#lengthObject

Returns the value of attribute length.



5
6
7
# File 'lib/bremen/track.rb', line 5

def length
  @length
end

#thumbnail_urlObject

Returns the value of attribute thumbnail_url.



5
6
7
# File 'lib/bremen/track.rb', line 5

def thumbnail_url
  @thumbnail_url
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/bremen/track.rb', line 5

def title
  @title
end

#uidObject

Returns the value of attribute uid.



5
6
7
# File 'lib/bremen/track.rb', line 5

def uid
  @uid
end

#updated_atObject

Returns the value of attribute updated_at.



5
6
7
# File 'lib/bremen/track.rb', line 5

def updated_at
  @updated_at
end

#urlObject

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