Class: SlideshareApi::Model::Slideshow

Inherits:
Object
  • Object
show all
Defined in:
lib/slideshare_api/model/slideshow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(slideshow_xml)
  @original_slideshow_xml = slideshow_xml

  @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')
  @embed = 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')
  @slideshow_type = 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')
  @tags = 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')
  @slide_count = text_from_xml('NumSlides')
  @related_slideshow_ids = 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_countObject

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_atObject

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

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def description
  @description
end

#download_countObject

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

#embedObject

Returns the value of attribute embed.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def embed
  @embed
end

#favorite_countObject

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

#formatObject

Returns the value of attribute format.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def format
  @format
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def id
  @id
end

#is_downloadableObject

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_embaddableObject

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_flaggedObject

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_contestObject

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_visibleObject

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_contactsObject

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

#languageObject

Returns the value of attribute language.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def language
  @language
end

#original_slideshow_xmlObject

Returns the value of attribute original_slideshow_xml.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def original_slideshow_xml
  @original_slideshow_xml
end

#ppt_locationObject

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_levelObject

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

Returns the value of attribute related_slideshow_ids.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def related_slideshow_ids
  @related_slideshow_ids
end

#slide_countObject

Returns the value of attribute slide_count.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def slide_count
  @slide_count
end

#slideshow_typeObject

Returns the value of attribute slideshow_type.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def slideshow_type
  @slideshow_type
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def status
  @status
end

#stripped_titleObject

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

#tagsObject

Returns the value of attribute tags.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def tags
  @tags
end

#thumbnail_sizeObject

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_urlObject

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_urlObject

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

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def title
  @title
end

#updated_atObject

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

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def url
  @url
end

#url_is_secretObject

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_idObject

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

#usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/slideshare_api/model/slideshow.rb', line 4

def username
  @username
end

#view_countObject

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