Class: Mixcloud::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/mixcloud/section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(track_url, position, start_time, section_type) ⇒ Section

Returns a new instance of Section.



5
6
7
8
9
10
# File 'lib/mixcloud/section.rb', line 5

def initialize(track_url, position, start_time, section_type)
  @track_url = track_url
  @position = position
  @start_time = start_time
  @section_type = section_type
end

Instance Attribute Details

#positionObject

Returns the value of attribute position.



3
4
5
# File 'lib/mixcloud/section.rb', line 3

def position
  @position
end

#section_typeObject

Returns the value of attribute section_type.



3
4
5
# File 'lib/mixcloud/section.rb', line 3

def section_type
  @section_type
end

#start_timeObject

Returns the value of attribute start_time.



3
4
5
# File 'lib/mixcloud/section.rb', line 3

def start_time
  @start_time
end

#track_urlObject

Returns the value of attribute track_url.



3
4
5
# File 'lib/mixcloud/section.rb', line 3

def track_url
  @track_url
end