tumblrb 1.0.6 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/tumblr/user.rb DELETED
@@ -1,11 +0,0 @@
1
- module Tumblr
2
- class User
3
- attr_accessor :email, :password, :tumblr
4
-
5
- # creates a User object and authenticates the user through the Tumblr API to get user data.
6
- def initialize(email, password)
7
- self.email = email
8
- self.password = password
9
- end
10
- end
11
- end
data/lib/tumblr/video.rb DELETED
@@ -1,23 +0,0 @@
1
- module Tumblr
2
- class Video < Item
3
- attr_accessor :caption, :source, :player
4
-
5
- def as_json
6
- super.merge!({
7
- :caption => caption,
8
- :source => source,
9
- :player => player
10
- })
11
- end
12
-
13
- private
14
-
15
- def parse_xml_node(node)
16
- super(node)
17
- self.caption = node.css('video-title').first.try(:content)
18
- self.source = node.css('video-text').first.try(:content)
19
- self.player = node.css('video-player').first.try(:content)
20
- self
21
- end
22
- end
23
- end