Class: Mixcloud::Cloudcast
- Defined in:
- lib/mixcloud/cloudcast.rb
Instance Attribute Summary collapse
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#audio_length ⇒ Object
Returns the value of attribute audio_length.
-
#comment_count ⇒ Object
Returns the value of attribute comment_count.
-
#created_time ⇒ Object
Returns the value of attribute created_time.
-
#description ⇒ Object
Returns the value of attribute description.
-
#favorite_count ⇒ Object
Returns the value of attribute favorite_count.
-
#key ⇒ Object
Returns the value of attribute key.
-
#listener_count ⇒ Object
Returns the value of attribute listener_count.
-
#name ⇒ Object
Returns the value of attribute name.
-
#percentage_music ⇒ Object
Returns the value of attribute percentage_music.
-
#play_count ⇒ Object
Returns the value of attribute play_count.
-
#public_url ⇒ Object
Returns the value of attribute public_url.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#updated_time ⇒ Object
Returns the value of attribute updated_time.
-
#user_url ⇒ Object
Returns the value of attribute user_url.
Instance Method Summary collapse
Methods inherited from Resource
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_url ⇒ Object
Returns the value of attribute api_url.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def api_url @api_url end |
#audio_length ⇒ Object
Returns the value of attribute audio_length.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def audio_length @audio_length end |
#comment_count ⇒ Object
Returns the value of attribute comment_count.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def comment_count @comment_count end |
#created_time ⇒ Object
Returns the value of attribute created_time.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def created_time @created_time end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def description @description end |
#favorite_count ⇒ Object
Returns the value of attribute favorite_count.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def favorite_count @favorite_count end |
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def key @key end |
#listener_count ⇒ Object
Returns the value of attribute listener_count.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def listener_count @listener_count end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def name @name end |
#percentage_music ⇒ Object
Returns the value of attribute percentage_music.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def percentage_music @percentage_music end |
#play_count ⇒ Object
Returns the value of attribute play_count.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def play_count @play_count end |
#public_url ⇒ Object
Returns the value of attribute public_url.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def public_url @public_url end |
#slug ⇒ Object
Returns the value of attribute slug.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def slug @slug end |
#updated_time ⇒ Object
Returns the value of attribute updated_time.
3 4 5 |
# File 'lib/mixcloud/cloudcast.rb', line 3 def updated_time @updated_time end |
#user_url ⇒ Object
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
#sections ⇒ Object
37 38 39 |
# File 'lib/mixcloud/cloudcast.rb', line 37 def sections convert_hash_data_into_array_of('sections') end |
#tag_urls ⇒ Object
45 46 47 |
# File 'lib/mixcloud/cloudcast.rb', line 45 def tag_urls .map(&:api_url) end |
#tags ⇒ Object
41 42 43 |
# File 'lib/mixcloud/cloudcast.rb', line 41 def convert_hash_data_into_array_of('tags') end |