Class: Mixcloud::Cloudcast

Inherits:
Resource show all
Defined in:
lib/mixcloud/cloudcast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Methods included from UrlHelper

#concat_with_metadata, #turn_www_to_api, #validate_mixcloud_url

Constructor Details

This class inherits a constructor from Mixcloud::Resource

Instance Attribute Details

#api_urlObject

Returns the value of attribute api_url.



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

def api_url
  @api_url
end

#audio_lengthObject

Returns the value of attribute audio_length.



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

def audio_length
  @audio_length
end

#comment_countObject

Returns the value of attribute comment_count.



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

def comment_count
  @comment_count
end

#created_timeObject

Returns the value of attribute created_time.



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

def created_time
  @created_time
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#favorite_countObject

Returns the value of attribute favorite_count.



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

def favorite_count
  @favorite_count
end

#keyObject

Returns the value of attribute key.



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

def key
  @key
end

#listener_countObject

Returns the value of attribute listener_count.



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

def listener_count
  @listener_count
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#percentage_musicObject

Returns the value of attribute percentage_music.



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

def percentage_music
  @percentage_music
end

#play_countObject

Returns the value of attribute play_count.



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

def play_count
  @play_count
end

#public_urlObject

Returns the value of attribute public_url.



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

def public_url
  @public_url
end

#slugObject

Returns the value of attribute slug.



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

def slug
  @slug
end

#updated_timeObject

Returns the value of attribute updated_time.



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

def updated_time
  @updated_time
end

#user_urlObject

Returns the value of attribute user_url.



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

def user_url
  @user_url
end

Instance Method Details

#sectionsObject



37
38
39
# File 'lib/mixcloud/cloudcast.rb', line 37

def sections
  convert_hash_data_into_array_of('sections')
end

#tag_urlsObject



45
46
47
# File 'lib/mixcloud/cloudcast.rb', line 45

def tag_urls
  tags.map(&:api_url)
end

#tagsObject



41
42
43
# File 'lib/mixcloud/cloudcast.rb', line 41

def tags
  convert_hash_data_into_array_of('tags')
end