Class: SlideshareApi::Model::Slideshow
- Inherits:
-
Object
- Object
- SlideshareApi::Model::Slideshow
- Defined in:
- lib/slideshare_api/model/slideshow.rb
Instance Attribute Summary collapse
-
#comment_count ⇒ Object
Returns the value of attribute comment_count.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#download_count ⇒ Object
Returns the value of attribute download_count.
-
#embed ⇒ Object
Returns the value of attribute embed.
-
#favorite_count ⇒ Object
Returns the value of attribute favorite_count.
-
#format ⇒ Object
Returns the value of attribute format.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_downloadable ⇒ Object
Returns the value of attribute is_downloadable.
-
#is_embaddable ⇒ Object
Returns the value of attribute is_embaddable.
-
#is_flagged ⇒ Object
Returns the value of attribute is_flagged.
-
#is_in_contest ⇒ Object
Returns the value of attribute is_in_contest.
-
#is_visible ⇒ Object
Returns the value of attribute is_visible.
-
#is_visible_by_contacts ⇒ Object
Returns the value of attribute is_visible_by_contacts.
-
#language ⇒ Object
Returns the value of attribute language.
-
#original_slideshow_xml ⇒ Object
Returns the value of attribute original_slideshow_xml.
-
#ppt_location ⇒ Object
Returns the value of attribute ppt_location.
-
#privacy_level ⇒ Object
Returns the value of attribute privacy_level.
-
#related_slideshow_ids ⇒ Object
Returns the value of attribute related_slideshow_ids.
-
#slide_count ⇒ Object
Returns the value of attribute slide_count.
-
#slideshow_type ⇒ Object
Returns the value of attribute slideshow_type.
-
#status ⇒ Object
Returns the value of attribute status.
-
#stripped_title ⇒ Object
Returns the value of attribute stripped_title.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#thumbnail_size ⇒ Object
Returns the value of attribute thumbnail_size.
-
#thumbnail_small_url ⇒ Object
Returns the value of attribute thumbnail_small_url.
-
#thumbnail_url ⇒ Object
Returns the value of attribute thumbnail_url.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
-
#url_is_secret ⇒ Object
Returns the value of attribute url_is_secret.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#username ⇒ Object
Returns the value of attribute username.
-
#view_count ⇒ Object
Returns the value of attribute view_count.
Instance Method Summary collapse
-
#initialize(slideshow_xml) ⇒ Slideshow
constructor
A new instance of Slideshow.
Constructor Details
#initialize(slideshow_xml) ⇒ Slideshow
Returns a new instance of Slideshow.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/slideshare_api/model/slideshow.rb', line 18 def initialize() = @id = text_from_xml('ID') @title = text_from_xml('Title') @description = text_from_xml('Description') @status = text_from_xml('Status') @username = text_from_xml('Username') @url = text_from_xml('URL') @thumbnail_url = text_from_xml('ThumbnailURL') @thumbnail_size = text_from_xml('ThumbnailSize') @thumbnail_small_url = text_from_xml('ThumbnailSmallURL') = text_from_xml('Embed') @created_at = Time.parse text_from_xml('Created') @updated_at = Time.parse text_from_xml('Updated') @language = text_from_xml('Language') @format = text_from_xml('Format') @is_downloadable = boolean_from_xml('Download') = text_from_xml('SlideshowType') @is_in_contest = boolean_from_xml('InContest') @user_id = text_from_xml('UserID') @ppt_location = text_from_xml('PPTLocation') @stripped_title = text_from_xml('StrippedTitle') = text_list_from_xml('Tag') @download_count = text_from_xml('NumDownloads') @view_count = text_from_xml('NumViews') @comment_count = text_from_xml('NumComments') @favorite_count = text_from_xml('NumFavorites') = text_from_xml('NumSlides') = text_list_from_xml('RelatedSlideshowID') @privacy_level = text_from_xml('PrivacyLevel') @is_flagged = boolean_from_xml('FlagVisible') @is_visible = boolean_from_xml('ShowOnSS') @url_is_secret = boolean_from_xml('SecretURL') @is_embaddable = boolean_from_xml('AllowEmbed') @is_visible_by_contacts = boolean_from_xml('ShareWithContacts') end |
Instance Attribute Details
#comment_count ⇒ Object
Returns the value of attribute comment_count.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def comment_count @comment_count end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def description @description end |
#download_count ⇒ Object
Returns the value of attribute download_count.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def download_count @download_count end |
#embed ⇒ Object
Returns the value of attribute embed.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def end |
#favorite_count ⇒ Object
Returns the value of attribute favorite_count.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def favorite_count @favorite_count end |
#format ⇒ Object
Returns the value of attribute format.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def format @format end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def id @id end |
#is_downloadable ⇒ Object
Returns the value of attribute is_downloadable.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def is_downloadable @is_downloadable end |
#is_embaddable ⇒ Object
Returns the value of attribute is_embaddable.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def is_embaddable @is_embaddable end |
#is_flagged ⇒ Object
Returns the value of attribute is_flagged.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def is_flagged @is_flagged end |
#is_in_contest ⇒ Object
Returns the value of attribute is_in_contest.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def is_in_contest @is_in_contest end |
#is_visible ⇒ Object
Returns the value of attribute is_visible.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def is_visible @is_visible end |
#is_visible_by_contacts ⇒ Object
Returns the value of attribute is_visible_by_contacts.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def is_visible_by_contacts @is_visible_by_contacts end |
#language ⇒ Object
Returns the value of attribute language.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def language @language end |
#original_slideshow_xml ⇒ Object
Returns the value of attribute original_slideshow_xml.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def end |
#ppt_location ⇒ Object
Returns the value of attribute ppt_location.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def ppt_location @ppt_location end |
#privacy_level ⇒ Object
Returns the value of attribute privacy_level.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def privacy_level @privacy_level end |
#related_slideshow_ids ⇒ Object
Returns the value of attribute related_slideshow_ids.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def end |
#slide_count ⇒ Object
Returns the value of attribute slide_count.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def end |
#slideshow_type ⇒ Object
Returns the value of attribute slideshow_type.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def status @status end |
#stripped_title ⇒ Object
Returns the value of attribute stripped_title.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def stripped_title @stripped_title end |
#tags ⇒ Object
Returns the value of attribute tags.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def end |
#thumbnail_size ⇒ Object
Returns the value of attribute thumbnail_size.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def thumbnail_size @thumbnail_size end |
#thumbnail_small_url ⇒ Object
Returns the value of attribute thumbnail_small_url.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def thumbnail_small_url @thumbnail_small_url end |
#thumbnail_url ⇒ Object
Returns the value of attribute thumbnail_url.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def thumbnail_url @thumbnail_url end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def url @url end |
#url_is_secret ⇒ Object
Returns the value of attribute url_is_secret.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def url_is_secret @url_is_secret end |
#user_id ⇒ Object
Returns the value of attribute user_id.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def user_id @user_id end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def username @username end |
#view_count ⇒ Object
Returns the value of attribute view_count.
4 5 6 |
# File 'lib/slideshare_api/model/slideshow.rb', line 4 def view_count @view_count end |